Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘莹莹
hunter-ht.cn
Commits
45d1781e
Commit
45d1781e
authored
Apr 27, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不改了不改了
parent
9ea59919
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
models.py
Hunter_ht/hunter/models.py
+1
-2
detail.html
Hunter_ht/hunter/templates/hunter/detail.html
+3
-3
No files found.
Hunter_ht/hunter/models.py
View file @
45d1781e
...
...
@@ -12,7 +12,7 @@ class User(models.Model):
name
=
models
.
CharField
(
max_length
=
50
)
pwd
=
models
.
CharField
(
max_length
=
100
)
name_hanzi
=
models
.
CharField
(
max_length
=
100
)
name_eng
=
models
.
CharField
(
max_length
=
100
,
default
=
name
)
name_eng
=
models
.
CharField
(
max_length
=
100
,
default
=
''
)
member_type
=
models
.
IntegerField
(
default
=
2
)
isCurrent
=
models
.
IntegerField
(
default
=
1
)
identity
=
models
.
CharField
(
max_length
=
1
,
default
=
'0'
)
...
...
@@ -22,7 +22,6 @@ class User(models.Model):
personal_website
=
models
.
CharField
(
max_length
=
1000
,
default
=
''
)
mailAddress
=
models
.
CharField
(
max_length
=
100
,
default
=
'mail@example.com'
)
def
is_admin
(
self
):
return
self
.
identity
...
...
Hunter_ht/hunter/templates/hunter/detail.html
View file @
45d1781e
...
...
@@ -11,7 +11,7 @@
<body>
<div
id=
"resume"
>
<div
id=
"top"
>
<p>
{{ user.name }}
</p>
<p>
{{ user.name
_eng
}}
</p>
<div>
{% if user.mailAddress %}
<span>
{{ user.mailAddress }}
</span>
...
...
@@ -22,6 +22,7 @@
</div>
</div>
<div
class=
"wrap"
>
{% if publication_year_list.items %}
<div
class=
"section"
>
<span>
PUBLICATIONS
</span>
{% for year,publications in publication_year_list.items %}
...
...
@@ -31,7 +32,6 @@
{{ year }}
</span>
</div>
{% if publications %}
{% for publication in publications %}
<ul>
<li>
...
...
@@ -45,10 +45,10 @@
</li>
</ul>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
<div
class=
"section"
>
<span>
MY-CVE
</span>
{% for year, cves in cve_year_list.items %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment