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
ed91048a
Commit
ed91048a
authored
May 26, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for magic link with python 3
parent
e6ff2f1d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
248 additions
and
242 deletions
+248
-242
readpdf.html
cps/templates/readpdf.html
+2
-2
remote_login.html
cps/templates/remote_login.html
+2
-2
messages.mo
cps/translations/de/LC_MESSAGES/messages.mo
+0
-0
messages.po
cps/translations/de/LC_MESSAGES/messages.po
+125
-119
ub.py
cps/ub.py
+1
-1
messages.pot
messages.pot
+118
-118
No files found.
cps/templates/readpdf.html
View file @
ed91048a
...
...
@@ -124,7 +124,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<span
data-l10n-id=
"print_label"
>
Print
</span>
</button>
<button
id=
"secondaryDownload"
class=
"secondaryToolbarButton download visibleMediumView"
title=
"Download"
tabindex=
"54"
data-l10n-id=
"download"
>
<button
id=
"secondaryDownload"
class=
"secondaryToolbarButton download visibleMediumView"
title=
"Download"
tabindex=
"54"
data-l10n-id=
"download"
{%
if
not
g
.
user
.
role_download
() %}
style=
"display:none;"
{%
endif
%}
>
<span
data-l10n-id=
"download_label"
>
Download
</span>
</button>
...
...
@@ -227,7 +227,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<span
data-l10n-id=
"print_label"
>
Print
</span>
</button>
<button
id=
"download"
class=
"toolbarButton download hiddenMediumView"
title=
"Download"
tabindex=
"34"
data-l10n-id=
"download"
>
<button
id=
"download"
class=
"toolbarButton download hiddenMediumView"
title=
"Download"
tabindex=
"34"
data-l10n-id=
"download"
{%
if
not
g
.
user
.
role_download
() %}
style=
"display:none;"
{%
endif
%}
>
<span
data-l10n-id=
"download_label"
>
Download
</span>
</button>
<a
href=
"#"
id=
"viewBookmark"
class=
"toolbarButton bookmark hiddenSmallView"
title=
"Current view (copy or open in new window)"
tabindex=
"35"
data-l10n-id=
"bookmark"
>
...
...
cps/templates/remote_login.html
View file @
ed91048a
...
...
@@ -3,13 +3,13 @@
<div
class=
"well"
>
<h2
style=
"margin-top: 0"
>
{{_('Remote login')}}
</h2>
<p>
{{_('Using your another device,
visit')}}
<a
href=
"{{verify_url}}"
>
{{verify_url}}
</a>
{{_('and log in')}}
.
{{_('Using your another device,
login and visit ')}}
<a
href=
"{{verify_url}}"
>
{{verify_url}}
</a>
.
</p>
<p>
{{_('Once you do so, you will automatically get logged in on this device.')}}
</p>
<p>
{{_('The link will expire after
%s minutes.' % 10
)}}
{{_('The link will expire after
10 minutes.'
)}}
</p>
</div>
{% endblock %}
...
...
cps/translations/de/LC_MESSAGES/messages.mo
View file @
ed91048a
No preview for this file type
cps/translations/de/LC_MESSAGES/messages.po
View file @
ed91048a
This diff is collapsed.
Click to expand it.
cps/ub.py
View file @
ed91048a
...
...
@@ -356,7 +356,7 @@ class RemoteAuthToken(Base):
expiration
=
Column
(
DateTime
)
def
__init__
(
self
):
self
.
auth_token
=
hexlify
(
os
.
urandom
(
4
)
)
self
.
auth_token
=
(
hexlify
(
os
.
urandom
(
4
)))
.
decode
(
'utf-8'
)
self
.
expiration
=
datetime
.
datetime
.
now
()
+
datetime
.
timedelta
(
minutes
=
10
)
# 10 min from now
def
__repr__
(
self
):
...
...
messages.pot
View file @
ed91048a
This diff is collapsed.
Click to expand it.
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