Task #7173 (accepted)
Opened 13 years ago
Last modified 12 years ago
Templates: Phase I — at Version 2
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | atarkowska, cxallan |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2011-11-10 (2) |
Description (last modified by wmoore)
Organise existing code: rearrange into templates to support the first set of use cases in #7067.
Some of this will be exploratory, to decide what strategies we want to adopt in this template story.
Outline of work:
- created new Django app: 'common'
- moved 'generic' templates from webclient/base/ to common/base/ (not moved base.html since header needs 'nav')
- separated various sections from base_main.html into 'includes' at common/base/includes/
- menu
- footer
- split the body, header & footer sections of layout.css into separate css files under omeroweb/media/omeroweb/common/css/ (not sure if omeroweb/media is the final location for 'common' media?) The idea is to allow inclusion of only the css you need, without all of layout.css.
Questions
- How to allow optional inclusion of various js or css? E.g.
{% include footer_css %}
with footer_css is simply one line:
<link rel="stylesheet" href="{% url webstatic "common/css/footer.css" %}" type="text/css" />
Change History (2)
comment:1 Changed 13 years ago by wmoore
- Status changed from new to accepted
comment:2 Changed 13 years ago by wmoore
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.