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
d21d3c2c
Commit
d21d3c2c
authored
Mar 27, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'div_a/use-btn-anchors' into master
parents
c4225e29
657cba04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
admin.html
cps/templates/admin.html
+6
-6
logviewer.html
cps/templates/logviewer.html
+2
-2
user_edit.html
cps/templates/user_edit.html
+3
-3
No files found.
cps/templates/admin.html
View file @
d21d3c2c
...
...
@@ -41,7 +41,7 @@
{% endif %}
{% endfor %}
</table>
<
div
class=
"btn btn-default"
id=
"admin_new_user"
><a
href=
"{{url_for('admin.new_user')}}"
>
{{_('Add New User')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"admin_new_user"
href=
"{{url_for('admin.new_user')}}"
>
{{_('Add New User')}}
</a
>
{% if (config.config_login_type == 1) %}
<div
class=
"btn btn-default"
id=
"import_ldap_users"
data-toggle=
"modal"
data-target=
"#StatusDialog"
>
{{_('Import LDAP Users')}}
</div>
{% endif %}
...
...
@@ -75,7 +75,7 @@
</div>
</div>
{% endif %}
<
div
class=
"btn btn-default emailconfig"
id=
"admin_edit_email"
><a
href=
"{{url_for('admin.edit_mailsettings')}}"
>
{{_('Edit E-mail Server Settings')}}
</a></div
>
<
a
class=
"btn btn-default emailconfig"
id=
"admin_edit_email"
href=
"{{url_for('admin.edit_mailsettings')}}"
>
{{_('Edit E-mail Server Settings')}}
</a
>
</div>
</div>
...
...
@@ -134,15 +134,15 @@
</div>
{% endif %}
</div>
<
div
class=
"btn btn-default"
><a
id=
"basic_config"
href=
"{{url_for('admin.configuration')}}"
>
{{_('Edit Basic Configuration')}}
</a></div
>
<
div
class=
"btn btn-default"
><a
id=
"view_config"
href=
"{{url_for('admin.view_configuration')}}"
>
{{_('Edit UI Configuration')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"basic_config"
href=
"{{url_for('admin.configuration')}}"
>
{{_('Edit Basic Configuration')}}
</a
>
<
a
class=
"btn btn-default"
id=
"view_config"
href=
"{{url_for('admin.view_configuration')}}"
>
{{_('Edit UI Configuration')}}
</a
>
</div>
</div>
<div
class=
"row form-group"
>
<h2>
{{_('Administration')}}
</h2>
<
div
class=
"btn btn-default"
><a
id=
"debug"
href=
"{{url_for('admin.download_debug')}}"
>
{{_('Download Debug Package')}}
</a></div
>
<
div
class=
"btn btn-default"
><a
id=
"logfile"
href=
"{{url_for('admin.view_logfile')}}"
>
{{_('View Logs')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"debug"
href=
"{{url_for('admin.download_debug')}}"
>
{{_('Download Debug Package')}}
</a
>
<
a
class=
"btn btn-default"
id=
"logfile"
href=
"{{url_for('admin.view_logfile')}}"
>
{{_('View Logs')}}
</a
>
</div>
<div
class=
"row form-group"
>
<div
class=
"btn btn-default"
id=
"restart_database"
data-toggle=
"modal"
data-target=
"#StatusDialog"
>
{{_('Reconnect Calibre Database')}}
</div>
...
...
cps/templates/logviewer.html
View file @
d21d3c2c
...
...
@@ -15,10 +15,10 @@
<div
class=
"row"
>
<div
class=
"col-xs-6 col-sm-7"
>
{% if log_enable %}
<
div
class=
"btn btn-default"
><a
id=
"log_file"
href=
"{{url_for('admin.download_log', logtype=0)}}"
>
{{_('Download Calibre-Web Log')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"log_file"
href=
"{{url_for('admin.download_log', logtype=0)}}"
>
{{_('Download Calibre-Web Log')}}
</a
>
{% endif %}
{% if accesslog_enable %}
<
div
class=
"btn btn-default"
><a
id=
"log_file"
href=
"{{url_for('admin.download_log', logtype=1)}}"
>
{{_('Download Access Log')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"log_file"
href=
"{{url_for('admin.download_log', logtype=1)}}"
>
{{_('Download Access Log')}}
</a
>
{% endif %}
</div>
</div>
...
...
cps/templates/user_edit.html
View file @
d21d3c2c
...
...
@@ -16,7 +16,7 @@
</div>
{% if ( g.user and g.user.role_passwd() or g.user.role_admin() ) and not content.role_anonymous() %}
{% if g.user and g.user.role_admin() and not new_user and not profile and ( mail_configured and content.email if content.email != None ) %}
<
div
class=
"btn btn-default"
id=
"resend_password"
><a
href=
"{{url_for('admin.reset_user_password', user_id = content.id) }}"
>
{{_('Reset user Password')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"resend_password"
href=
"{{url_for('admin.reset_user_password', user_id = content.id) }}"
>
{{_('Reset user Password')}}
</a
>
{% endif %}
<div
class=
"form-group"
>
<label
for=
"password"
>
{{_('Password')}}
</label>
...
...
@@ -52,9 +52,9 @@
<div
class=
"form-group"
>
<label>
{{ name }} {{_('OAuth Settings')}}
</label>
{% if id not in oauth_status %}
<
div><a
href=
"{{ url_for('oauth.'+ name +'_login') }}"
id=
"config_{{ id }}_oauth"
class=
"btn btn-primary"
>
{{_('Link')}}
</a></div
>
<
a
href=
"{{ url_for('oauth.'+ name +'_login') }}"
id=
"config_{{ id }}_oauth"
class=
"btn btn-primary"
>
{{_('Link')}}
</a
>
{% else %}
<
div><a
href=
"{{ url_for('oauth.'+ name +'_login_unlink') }}"
id=
"config_{{ id }}_oauth"
class=
"btn btn-primary"
>
{{_('Unlink')}}
</a></div
>
<
a
href=
"{{ url_for('oauth.'+ name +'_login_unlink') }}"
id=
"config_{{ id }}_oauth"
class=
"btn btn-primary"
>
{{_('Unlink')}}
</a
>
{% endif %}
{% endfor %}
</div>
...
...
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