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
f57c9c59
Commit
f57c9c59
authored
Apr 20, 2016
by
Cervinko Cera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove if clauses for int and float in edit_book.html
parent
27d5a79e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
config.ini
config.ini
+6
-6
edit_book.html
cps/templates/edit_book.html
+5
-10
No files found.
config.ini
View file @
f57c9c59
[General]
[General]
DB_ROOT
=
DB_ROOT
=
/home/christoph/Calibre-Bibliothek_test
APP_DB_ROOT
=
APP_DB_ROOT
=
/home/christoph/computer/calibre-web
MAIN_DIR
=
MAIN_DIR
=
/home/christoph/computer/calibre-web
LOG_DIR
=
LOG_DIR
=
/home/christoph/computer/calibre-web
PORT
=
8083
PORT
=
8083
NEWEST_BOOKS
=
60
NEWEST_BOOKS
=
60
[Advanced]
[Advanced]
TITLE_REGEX
=
^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)
\s
+
TITLE_REGEX
=
^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)
\s
+
DEVELOPMENT
=
0
DEVELOPMENT
=
1
PUBLIC_REG
=
0
PUBLIC_REG
=
0
UPLOADING
=
0
UPLOADING
=
1
cps/templates/edit_book.html
View file @
f57c9c59
...
@@ -67,18 +67,13 @@
...
@@ -67,18 +67,13 @@
</select>
</select>
{% endif %}
{% endif %}
{% if c.datatype == ('rating' or 'float' or 'int') %}
{% if c.datatype == 'rating' %}
<input
type=
"number"
<input
type=
"number"
min=
"1"
max=
"5"
step=
"1"
class=
"form-control"
name=
"{{ 'custom_column_' ~ c.id }}"
id=
"{{ 'custom_column_' ~ c.id }}"
{%
if
c
.
datatype =
=
'
rating
'%}
min=
"1"
max=
"5"
{%
endif
%}
{%
if
c
.
datatype
!=
'
float
'
%}
step=
"1"
{%
endif
%}
class=
"form-control"
name=
"{{ 'custom_column_' ~ c.id }}"
id=
"{{ 'custom_column_' ~ c.id }}"
{%
if
book
['
custom_column_
'
~
c
.
id
]|
length
>
0 %}
{%
if
book
['
custom_column_
'
~
c
.
id
]|
length
>
0 %}
{% for column in book['custom_column_' ~ c.id] %}
{% for column in book['custom_column_' ~ c.id] %}
value="{{ column.value }}{% if not loop.last %}, {% endif %}{% endfor %}"{% endif %}>
value="{{ column.value }}{% if not loop.last %}, {% endif %}
{% endfor %}"
{% endif %}>
{% endif %}
{% endif %}
</div>
</div>
{% 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