Using new layout for shots

This commit is contained in:
2016-09-21 15:12:15 +02:00
parent cf87602a78
commit 4035d89ced
3 changed files with 34 additions and 59 deletions

View File

@@ -1,30 +1,23 @@
| {% extends 'attract/layout.html' %} | {% extends 'attract/layout.html' %}
| {% block page_title %}Shots{% endblock %} | {% block page_title %}Shots for project {{ project.name }}{% endblock %}
| {% block body %} | {% block body %}
#page-container #col_main
#page-header h1 Shots for <em>{{ project.name }}</em>
.page-title table
| Shots for project {{ project.name }} thead
tr
#page-content td Shot name
.page-triplet-container.homepage | {% for task_type in attract_props.task_types.attract_shot %}
.row td {{ task_type}}
.col-md-8 | {% endfor %}
table tbody
thead | {% for shot in shots %}
tr tr
td Shot name td {{ shot.name }}
| {% for task_type in attract_props.task_types.attract_shot %} | {% for task_type in attract_props.task_types.attract_shot %}
td {{ task_type}} td tasks of type {{ task_type }}
| {% endfor %} | {% endfor %}
tbody | {% endfor %}
| {% for shot in shots %} #col_right
tr h1 Right
td {{ shot.name }}
| {% for task_type in attract_props.task_types.attract_shot %}
td tasks of type {{ task_type }}
| {% endfor %}
| {% endfor %}
.col-md-4
.well Task details here
| {% endblock %} | {% endblock %}

View File

@@ -1,23 +1,13 @@
| {% extends 'attract/layout.html' %} | {% extends 'attract/layout.html' %}
| {% block page_title %}Shots{% endblock %} | {% block page_title %}Attract - Shots{% endblock %}
| {% block body %} | {% block body %}
#page-container #col_main
#page-header h1 Attract projects
.page-title ul
| Attract - Shots | {% for project in projects %}
li
#page-content a(href="{{ url_for('attract.shots.perproject.index', project_url=project.url) }}") {{ project.name }}
.page-triplet-container.homepage | {% endfor %}
.row #col_right
.col-md-4 h1 Right
h2 Attract projects
ul
| {% for project in projects %}
li
a(href="{{ url_for('attract.shots.perproject.index', project_url=project.url) }}") {{ project.name }}
| {% endfor %}
.col-md-4
h2 project 2
.col-md-4
h2 project 3
| {% endblock %} | {% endblock %}

View File

@@ -1,16 +1,8 @@
| {% extends 'attract/layout.html' %} | {% extends 'attract/layout.html' %}
| {% block page_title %}Shot {{ shot.name }}{% endblock %} | {% block page_title %}Shot {{ shot.name }}{% endblock %}
| {% block body %} | {% block body %}
#page-container #col_main
#page-header h1 Shot {{ shot.name }}
.page-title #col_right
| Shot {{ shot.name }} h1 Right
#page-content
.page-triplet-container.homepage
.row
.col-md-8
p this is a shot.
.col-md-4
.well Task details here
| {% endblock %} | {% endblock %}