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
657cba04
Commit
657cba04
authored
Mar 23, 2021
by
Gavin Mogan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use btn classes on anchors not div so the entire button is clickable
parent
f4ddac16
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 @
657cba04
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
</table>
</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) %}
{% 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>
<div
class=
"btn btn-default"
id=
"import_ldap_users"
data-toggle=
"modal"
data-target=
"#StatusDialog"
>
{{_('Import LDAP Users')}}
</div>
{% endif %}
{% endif %}
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
</div>
</div>
</div>
</div>
{% endif %}
{% 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>
</div>
</div>
...
@@ -134,15 +134,15 @@
...
@@ -134,15 +134,15 @@
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
<
div
class=
"btn btn-default"
><a
id=
"basic_config"
href=
"{{url_for('admin.configuration')}}"
>
{{_('Edit Basic Configuration')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"basic_config"
href=
"{{url_for('admin.configuration')}}"
>
{{_('Edit Basic Configuration')}}
</a
>
<
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=
"view_config"
href=
"{{url_for('admin.view_configuration')}}"
>
{{_('Edit UI Configuration')}}
</a
>
</div>
</div>
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<h2>
{{_('Administration')}}
</h2>
<h2>
{{_('Administration')}}
</h2>
<
div
class=
"btn btn-default"
><a
id=
"debug"
href=
"{{url_for('admin.download_debug')}}"
>
{{_('Download Debug Package')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"debug"
href=
"{{url_for('admin.download_debug')}}"
>
{{_('Download Debug Package')}}
</a
>
<
div
class=
"btn btn-default"
><a
id=
"logfile"
href=
"{{url_for('admin.view_logfile')}}"
>
{{_('View Logs')}}
</a></div
>
<
a
class=
"btn btn-default"
id=
"logfile"
href=
"{{url_for('admin.view_logfile')}}"
>
{{_('View Logs')}}
</a
>
</div>
</div>
<div
class=
"row form-group"
>
<div
class=
"row form-group"
>
<div
class=
"btn btn-default"
id=
"restart_database"
data-toggle=
"modal"
data-target=
"#StatusDialog"
>
{{_('Reconnect Calibre Database')}}
</div>
<div
class=
"btn btn-default"
id=
"restart_database"
data-toggle=
"modal"
data-target=
"#StatusDialog"
>
{{_('Reconnect Calibre Database')}}
</div>
...
...
cps/templates/logviewer.html
View file @
657cba04
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-xs-6 col-sm-7"
>
<div
class=
"col-xs-6 col-sm-7"
>
{% if log_enable %}
{% 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 %}
{% endif %}
{% if accesslog_enable %}
{% 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 %}
{% endif %}
</div>
</div>
</div>
</div>
...
...
cps/templates/user_edit.html
View file @
657cba04
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</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_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 ) %}
{% 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 %}
{% endif %}
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"password"
>
{{_('Password')}}
</label>
<label
for=
"password"
>
{{_('Password')}}
</label>
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
{{ name }} {{_('OAuth Settings')}}
</label>
<label>
{{ name }} {{_('OAuth Settings')}}
</label>
{% if id not in oauth_status %}
{% 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 %}
{% 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 %}
{% endif %}
{% endfor %}
{% endfor %}
</div>
</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