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
a3cc59cb
Commit
a3cc59cb
authored
May 06, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publication不显示问题
parent
9ea24adb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
detail.html
Hunter_ht/hunter/templates/hunter/detail.html
+0
-2
index.html
Hunter_ht/hunter/templates/hunter/index.html
+1
-1
views.py
Hunter_ht/hunter/views.py
+1
-0
No files found.
Hunter_ht/hunter/templates/hunter/detail.html
View file @
a3cc59cb
...
...
@@ -25,7 +25,6 @@
</div>
</div>
<div
class=
"wrap"
>
{% if publications %}
<div
class=
"section"
>
<span>
PUBLICATIONS
</span>
{% for year,publications in publication_year_list.items %}
...
...
@@ -51,7 +50,6 @@
</div>
{% endfor %}
</div>
{% endif %}
{% if cve_year_list.items %}
<div
class=
"section"
>
<span>
MY-CVE
</span>
...
...
Hunter_ht/hunter/templates/hunter/index.html
View file @
a3cc59cb
...
...
@@ -85,11 +85,11 @@
<span>
小组成员
</span>
</div>
<span
class=
"former"
>
<button
id=
"show_btn"
onclick=
"show_former()"
>
显示前成员
</button>
<button
style=
"display: none"
id=
"close_btn"
onclick=
"close_former()"
>
隐藏
</button>
</span>
</div>
<div
class=
"wrap"
id=
"former_member"
style=
"display: none;"
>
{% for tp,users in user_type_list_former.items %}
<div
class=
"member_type"
>
...
...
Hunter_ht/hunter/views.py
View file @
a3cc59cb
...
...
@@ -201,6 +201,7 @@ def detail(request, user_id):
pub_ids
=
PubToUser
.
objects
.
filter
(
userID
=
user_id
)
.
all
()
.
values
(
"pubID"
)
for
pub_id
in
pub_ids
:
pub
=
get_object_or_404
(
Publications
,
pk
=
pub_id
[
'pubID'
])
if
pub
.
isOpen
==
'1'
:
year
=
str
(
pub
.
date
)[
0
:
4
]
pub
.
date
=
str
(
pub
.
date
)[
5
:
10
]
pub
.
link
=
pub
.
link
.
split
(
'/'
)[
-
1
]
...
...
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