Better formatting

This commit is contained in:
Robin Ward 2016-03-11 11:31:56 -05:00
parent ad7525be7c
commit 98a71cfc52
2 changed files with 34 additions and 7 deletions

View File

@ -3,14 +3,25 @@
{{#each model as |n|}}
<div class='staff-note'>
<div class='posted-by'>
{{avatar n.created_by imageSize="tiny"}}
{{#user-link user=n.created_by}}
{{avatar n.created_by imageSize="small"}}
{{/user-link}}
</div>
<div class='cooked'>{{cook-text n.raw}}</div>
<div class='note-contents'>
<div class='note-info'>
<span class='username'>{{n.created_by.username}}</span>
<span class='post-date'>{{age-with-tooltip n.created_at}}</span>
</div>
<div class='cooked'>
{{cook-text n.raw}}
</div>
</div>
<div class='clearfix'></div>
</div>
{{/each}}
{{textarea value=newNote}}
{{d-button action="attachNote" label="staff_notes.attach" class="btn-primary" disabled=attachDisabled}}
</div>

View File

@ -1,12 +1,24 @@
.staff-notes-modal {
.modal-body.staff-notes-modal {
height: 300px;
textarea {
width: 99%;
}
.posted-by {
width: 30px;
width: 40px;
float: left;
}
.cooked {
float: left;
.note-contents {
overflow: hidden;
.cooked {
margin-top: 0.5em;
}
.username {
font-weight: bold;
}
p {
margin: 0 0 1em 0;
@ -16,6 +28,10 @@
.staff-note {
margin-bottom: 1em;
}
.post-date {
float: right;
}
}
.staff-notes-icon {