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
c130850a
Commit
c130850a
authored
May 20, 2020
by
Xu Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css中静态资源引用路径错误。
parent
f9053aa0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
+11
-13
style.css
hunter/static/style.css
+5
-5
admin.html
hunter/templates/admin.html
+1
-0
user.html
hunter/templates/user.html
+3
-3
view_api.py
hunter/views/view_api.py
+2
-2
view_page.py
hunter/views/view_page.py
+0
-3
No files found.
hunter/static/style.css
View file @
c130850a
...
...
@@ -162,7 +162,7 @@ nav>div{
left
:
10%
;
}
#bg_img
{
background
:
url("/static/
hunter/
images/welcome.jpeg")
no-repeat
;
background
:
url("/static/images/welcome.jpeg")
no-repeat
;
background-size
:
100%
100%
;
margin
:
0
auto
;
height
:
100%
;
...
...
@@ -225,7 +225,7 @@ nav>div{
width
:
50px
;
height
:
50px
;
margin
:
5px
;
background
:
url("/static/
hunter/
images/edit.png")
no-repeat
;
background
:
url("/static/images/edit.png")
no-repeat
;
background-size
:
100%
100%
;
}
.bar_bottom
:hover
{
...
...
@@ -832,13 +832,13 @@ li svg{
width
:
20px
;
height
:
20px
;
margin
:
5px
0
;
background-image
:
url("/static/
hunter/
images/delete.png")
;
background-image
:
url("/static/images/delete.png")
;
}
.edit_img
{
width
:
20px
;
height
:
20px
;
margin
:
5px
0
;
background-image
:
url("/static/
hunter/
images/edit.png")
;
background-image
:
url("/static/images/edit.png")
;
}
.add_one
button
svg
{
margin
:
8px
5px
;
...
...
@@ -862,7 +862,7 @@ li svg{
height
:
20px
;
margin
:
5px
0
;
float
:
left
!important
;
background
:
url("/static/
hunter/
images/link.png")
no-repeat
!important
;
background
:
url("/static/images/link.png")
no-repeat
!important
;
}
#isPublish
{
width
:
65%
;
...
...
hunter/templates/admin.html
View file @
c130850a
...
...
@@ -534,6 +534,7 @@
"score"
:
scoreNum
,
"reason"
:
reason
,
"action"
:
addOrSub
,
'csrfmiddlewaretoken'
:
'{{ csrf_token }}'
},
dataType
:
'json'
,
success
:
function
(
response
)
{
...
...
hunter/templates/user.html
View file @
c130850a
...
...
@@ -192,9 +192,9 @@
<strong><a
href=
"//www.hunter-ht.cn/"
target=
"_blank"
>
hunter-ht.cn
</a></strong>
All Rights Reserved. 备案号:
<a
target=
"_blank"
rel=
"nofollow"
href=
"http://www.beian.miit.gov.cn"
>
湘ICP备18008562号
</a>
</div>
</footer>
<script
type=
"text/javascript"
src=
"{% static '
hunter/
bootstrap.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static '
hunter/
bootstrap-datetimepicker.js' %}"
charset=
"UTF-8"
></script>
<script
type=
"text/javascript"
src=
"{% static '
hunter/
bootstrap-datetimepicker.zh-CN.js' %}"
charset=
"UTF-8"
></script>
<script
type=
"text/javascript"
src=
"{% static 'bootstrap.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'bootstrap-datetimepicker.js' %}"
charset=
"UTF-8"
></script>
<script
type=
"text/javascript"
src=
"{% static 'bootstrap-datetimepicker.zh-CN.js' %}"
charset=
"UTF-8"
></script>
<script
type=
"text/javascript"
>
$
(
'.form_datetime'
).
datetimepicker
({
//language: 'fr',
...
...
hunter/views/view_api.py
View file @
c130850a
...
...
@@ -85,7 +85,7 @@ def profile_submit(request):
except
ObjectDoesNotExist
as
e
:
return
JsonResponse
({
"message"
:
0
,
'error'
:
e
})
@csrf_exempt
def
save_edit_art
(
request
):
userID
=
request
.
POST
.
get
(
'userID'
,
''
)
...
...
@@ -137,7 +137,7 @@ def save_edit_art(request):
return
response
@csrf_exempt
def
add_url_article
(
request
):
userID
=
request
.
POST
.
get
(
'userID'
,
''
)
title
=
request
.
POST
.
get
(
'title'
,
''
)
...
...
hunter/views/view_page.py
View file @
c130850a
...
...
@@ -250,7 +250,6 @@ def article_html(request, article_id):
# 新建文章页面
@csrf_exempt
def
write_art_html
(
request
):
if
request
.
is_ajax
():
userID
=
request
.
POST
.
get
(
'userID'
,
''
)
...
...
@@ -341,7 +340,6 @@ def check_admin_privilage(user_id):
# 管理员
def
admin
(
request
):
admin_id
=
request
.
session
.
get
(
'admin_id'
)
admin_id
=
4
if
admin_id
==
None
:
if
request
.
method
!=
'POST'
:
return
HttpResponseNotFound
(
'<h1>Page not found</h1>'
)
...
...
@@ -502,7 +500,6 @@ def add_user(request):
return
render
(
request
,
'admin.html'
)
@csrf_exempt
def
add_sub_score
(
request
):
if
request
.
is_ajax
():
action
=
request
.
POST
.
get
(
"action"
)
...
...
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