Style empty lists

This commit is contained in:
2016-09-29 17:28:35 +02:00
parent 37c0c23e83
commit ba217f2496
3 changed files with 35 additions and 25 deletions

View File

@@ -137,14 +137,20 @@
display: flex display: flex
flex-direction: column flex-direction: column
.item-details-empty .item-details-empty
display: flex display: flex
align-items: center align-items: center
justify-content: center justify-content: center
width: 100% width: 100%
height: 100% height: 100%
color: rgba($color-text-dark-hint, .5) color: rgba($color-text-dark-hint, .5)
cursor: default cursor: default
font: font:
size: 2em size: 2em
weight: 100 weight: 100
#item-view-feed
padding: 10px
color: $color-text-dark-primary
pre
margin: 15px auto

View File

@@ -1,4 +1,4 @@
.attract-form .attract-form.shot
form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')") form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')")
input(type='hidden',name='_etag',value='{{ shot._etag }}') input(type='hidden',name='_etag',value='{{ shot._etag }}')
.input-transparent-group .input-transparent-group
@@ -40,10 +40,11 @@
| {% if 'PUT' in shot.allowed_methods %} | {% if 'PUT' in shot.allowed_methods %}
button.btn.btn-default.btn-block(type=submit) button.btn.btn-default.btn-block(type=submit)
i.pi-check i.pi-check
| Save Changes | Save Shot
| {% endif %} | {% endif %}
#task-view-feed
| Updated {{ shot._updated | pretty_date }} #item-view-feed
| Shot updated {{ shot._updated | pretty_date }}
pre. pre.
{{ shot.to_dict() | pprint }} {{ shot.to_dict() | pprint }}

View File

@@ -1,4 +1,5 @@
.attract-form .attract-form.task(
class="status-{{ task.properties.status }}")
form#task_form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')") form#task_form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')")
input(type='hidden',name='_etag',value='{{ task._etag }}') input(type='hidden',name='_etag',value='{{ task._etag }}')
.input-transparent-group .input-transparent-group
@@ -66,19 +67,21 @@
| <option value="{{ u._id }}" {% if u._id in task.properties.assigned_to['users'] %}selected{% endif %}>{{ u.full_name }}</option> | <option value="{{ u._id }}" {% if u._id in task.properties.assigned_to['users'] %}selected{% endif %}>{{ u.full_name }}</option>
| {% endfor %} | {% endfor %}
| {% if 'PUT' in task.allowed_methods %}
.input-group-separator
.input-transparent-group .input-transparent-group
| {% if 'PUT' in task.allowed_methods %} button.btn.btn-default.btn-block(type='submit')
button.btn.btn-default(type='submit')
i.pi-check i.pi-check
| Save Changes | Save Task
| {% endif %} | {% endif %}
#task-view-feed #item-view-feed
| Updated {{ task._updated | pretty_date }} | Task updated {{ task._updated | pretty_date }}
ul pre.
each _, i in Array(5) {{ task.to_dict() | pprint }}
li=i
script. script.