Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
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
captainwong
douban-api-proxy
Commits
fa3426aa
Commit
fa3426aa
authored
Jan 08, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
fa4918a2
eb1c87fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
caliBlur.js
cps/static/js/caliBlur.js
+5
-6
detail.html
cps/templates/detail.html
+2
-0
layout.html
cps/templates/layout.html
+2
-2
No files found.
cps/static/js/caliBlur.js
View file @
fa3426aa
...
@@ -224,14 +224,13 @@ $( '.publishers span:nth-child(3)' ).text(function() {
...
@@ -224,14 +224,13 @@ $( '.publishers span:nth-child(3)' ).text(function() {
return
$
(
this
).
text
().
replace
(
/^
\s
+|^
\t
+|
\t
+|
\s
+$/g
,
""
);
return
$
(
this
).
text
().
replace
(
/^
\s
+|^
\t
+|
\t
+|
\s
+$/g
,
""
);
});
});
published
=
$
(
'.
book-meta p:contains("Publishing date")
'
)
published
=
$
(
'.
publishing-date p
'
)
.
text
().
split
(
': '
);
.
text
().
split
(
': '
);
$
(
'.book-meta p:contains("Publishing date")'
)
$
(
'.publishing-date p'
).
remove
();
.
before
(
'<div class="published-date"></div>'
);
$
(
'.book-meta p:contains("Publishing date")'
).
remove
();
$
.
each
(
published
,
function
(
i
,
val
)
{
$
.
each
(
published
,
function
(
i
,
val
)
{
$
(
'.publish
ed
-date'
).
append
(
'<span>'
+
published
[
i
]
+
'</span>'
);
$
(
'.publish
ing
-date'
).
append
(
'<span>'
+
published
[
i
]
+
'</span>'
);
});
});
languages
=
$
(
'.languages p span'
).
text
().
split
(
': '
);
languages
=
$
(
'.languages p span'
).
text
().
split
(
': '
);
$
(
'.languages p span'
).
remove
();
$
(
'.languages p span'
).
remove
();
$
.
each
(
languages
,
function
(
i
,
val
)
{
$
.
each
(
languages
,
function
(
i
,
val
)
{
...
@@ -400,7 +399,7 @@ if ( $( 'body.shelf' ).length > 0 ) {
...
@@ -400,7 +399,7 @@ if ( $( 'body.shelf' ).length > 0 ) {
}
}
// Move create shelf
// Move create shelf
$
(
'#nav_createshelf'
).
prependTo
(
'
li:contains("Your Shelves")
'
);
$
(
'#nav_createshelf'
).
prependTo
(
'
.your-shelves
'
);
// Create drop-down for profile and move elements to it
// Create drop-down for profile and move elements to it
$
(
'#main-nav'
)
$
(
'#main-nav'
)
...
...
cps/templates/detail.html
View file @
fa3426aa
...
@@ -144,7 +144,9 @@
...
@@ -144,7 +144,9 @@
{% endif %}
{% endif %}
{% if entry.pubdate[:10] != '0101-01-01' %}
{% if entry.pubdate[:10] != '0101-01-01' %}
<div
class=
"publishing-date"
>
<p>
{{_('Publishing date')}}: {{entry.pubdate|formatdate}}
</p>
<p>
{{_('Publishing date')}}: {{entry.pubdate|formatdate}}
</p>
</div>
{% endif %}
{% endif %}
{% if cc|length > 0 %}
{% if cc|length > 0 %}
...
...
cps/templates/layout.html
View file @
fa3426aa
...
@@ -166,11 +166,11 @@
...
@@ -166,11 +166,11 @@
<li
id=
"nav_lang"
{%
if
page =
=
'
language
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('language_overview')}}"
><span
class=
"glyphicon glyphicon-flag"
></span>
{{_('Languages')}}
</a></li>
<li
id=
"nav_lang"
{%
if
page =
=
'
language
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('language_overview')}}"
><span
class=
"glyphicon glyphicon-flag"
></span>
{{_('Languages')}}
</a></li>
{%endif%}
{%endif%}
{% if g.user.is_authenticated or g.user.is_anonymous %}
{% if g.user.is_authenticated or g.user.is_anonymous %}
<li
class=
"nav-head hidden-xs"
>
{{_('Public Shelves')}}
</li>
<li
class=
"nav-head hidden-xs
public-shelves
"
>
{{_('Public Shelves')}}
</li>
{% for shelf in g.public_shelfes %}
{% for shelf in g.public_shelfes %}
<li><a
href=
"{{url_for('show_shelf', shelf_id=shelf.id)}}"
><span
class=
"glyphicon glyphicon-list public_shelf"
></span>
{{shelf.name|shortentitle(40)}}
</a></li>
<li><a
href=
"{{url_for('show_shelf', shelf_id=shelf.id)}}"
><span
class=
"glyphicon glyphicon-list public_shelf"
></span>
{{shelf.name|shortentitle(40)}}
</a></li>
{% endfor %}
{% endfor %}
<li
class=
"nav-head hidden-xs"
>
{{_('Your Shelves')}}
</li>
<li
class=
"nav-head hidden-xs
your-shelves
"
>
{{_('Your Shelves')}}
</li>
{% for shelf in g.user.shelf %}
{% for shelf in g.user.shelf %}
<li><a
href=
"{{url_for('show_shelf', shelf_id=shelf.id)}}"
><span
class=
"glyphicon glyphicon-list private_shelf"
></span>
{{shelf.name|shortentitle(40)}}
</a></li>
<li><a
href=
"{{url_for('show_shelf', shelf_id=shelf.id)}}"
><span
class=
"glyphicon glyphicon-list private_shelf"
></span>
{{shelf.name|shortentitle(40)}}
</a></li>
{% endfor %}
{% endfor %}
...
...
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