| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #1101 +/- ##
=========================================
- Coverage 62.02% 62% -0.02%
=========================================
Files 230 230
Lines 16587 16587
=========================================
- Hits 10288 10285 -3
- Misses 6299 6302 +3
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Didn't test it, but the code looks alright.
Reviewed 3 of 3 files at r1, 1 of 1 files at r2, 8 of 8 files at r3, 2 of 2 files at r4, 5 of 5 files at r5.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @stefano-maggiolo)
cms/server/admin/templates/macro/pages.html, line 21 at r1 (raw file):
{% endfor %} {% endif %} </div>
The outer if and the div are nested incorrectly.
cms/server/admin/templates/macro/pages.html, line 25 at r2 (raw file):
{% endif %} {% endif %} </div>
Same nesting issue.
cms/server/admin/templates/macro/pages.html, line 33 at r2 (raw file):
Show a page range selector from start (included) to end (excluded). #} {% for i in range([0, start]|max, [pages, end]|min) %}
Dunno if it's the same in Jinja, but this syntax works in plain Python: range(pages)[start:end] (and it returns a properly capped range object)
Sorry, something went wrong.
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @lerks)
cms/server/admin/templates/macro/pages.html, line 21 at r1 (raw file):
Previously, lerks (Luca Wehrstedt) wrote…The outer if and the div are nested incorrectly.
Good catch
cms/server/admin/templates/macro/pages.html, line 25 at r2 (raw file):
Previously, lerks (Luca Wehrstedt) wrote…Same nesting issue.
Good catch
cms/server/admin/templates/macro/pages.html, line 33 at r2 (raw file):
Good catch
not if start is negative, no?
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! Fixing in place and submitting.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @lerks)
Sorry, something went wrong.
|
I'm getting an error on the Submissions and User tests pages with CMS installed in the system: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tornado/web.py", line 1510, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/lib/python3/dist-packages/tornado/web.py", line 2898, in wrapper
return method(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/server/admin/handlers/base.py", line 173, in newfunc
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/server/admin/handlers/contestsubmission.py", line 47, in get
self.render("contest_submissions.html", **self.r_params)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/server/admin/handlers/base.py", line 281, in render
for chunk in t.generate(**params):
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1045, in generate
yield self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/server/admin/templates/contest_submissions.html", line 1, in top-level template code
{% import "macro/reevaluation_buttons.html" as macro_reevaluation_buttons %}
File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 235, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: macro/reevaluation_buttons.html
fragments/reevaluation_buttons.html exists on the file system instead. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
If you think you'll have more than a few comments let me know and I'll split into more PRs.
Partially fixes #1097.
This change is