"README.rst" did not exist on "d7e5cc0de88c7879232a19ce90d2fead35f84af9"
Extract ThesisLink#header_as_table to partial template
Markup logic should be in templates, not in model layer. Partial template is named _header_as_table to signal that it is ment to be included into other templates (analogous to the private method naming convention.) The full text of several of the thesis link's fields (domain, subject_area, etc.) are fetched from constant dicts in custom filters defined in theses.templatetags.theses_extras.
Showing
- theses/models.py 0 additions, 39 deletionstheses/models.py
- theses/templates/theses/_header_as_table.html 46 additions, 0 deletionstheses/templates/theses/_header_as_table.html
- theses/templates/theses/thesis_detail.html 2 additions, 1 deletiontheses/templates/theses/thesis_detail.html
- theses/templatetags/__init__.py 0 additions, 0 deletionstheses/templatetags/__init__.py
- theses/templatetags/theses_extras.py 26 additions, 0 deletionstheses/templatetags/theses_extras.py
theses/templatetags/__init__.py
0 → 100644
theses/templatetags/theses_extras.py
0 → 100644
Please register or sign in to comment