Add styling and markup for tasks on home page

This commit is contained in:
perryharlock
2013-09-16 16:09:55 +01:00
parent 7a02c491d8
commit 1e7608eba3
4 changed files with 23 additions and 21 deletions

View File

@@ -117,7 +117,7 @@ ul {
.task-card .no-results { .task-card .no-results {
font-size:25px; font-size:25px;
line-height:37px; line-height:37px;
margin:25px 0; margin:26px 0;
} }
.add-task a { .add-task a {
color:#808080; color:#808080;

View File

@@ -3,8 +3,4 @@
Tasks Tasks
{{/content}} {{/content}}
<h1>Tasks</h1>
<p>Here are some tasks:</p>
{{> tasks}} {{> tasks}}

View File

@@ -1,20 +1,28 @@
<ul> <ul class="list-unstyled clearfix">
<li> <li class="col-md-4 col-sm-6 task-card add-task">
<a href="/new">Create a task</a> <a class="well" data-role="add-task" href="/new">
<p class="h3 crunch">add new url</p>
<p class="supersize-me crunch">+</p>
</a>
</li> </li>
{{#tasks}} {{#tasks}}
<li> <li class="col-md-4 col-sm-6 task-card">
<a href="/{{id}}"> <a class="well" href="/{{id}}">
<p class="h3">{{url}}</p>
{{url}} ({{standard}}) <p class="h5">({{standard}})</p>
{{#if last_result}}
{{#last_result}} <ul class="clearfix list-unstyled floated-list task-stats">
<br/> {{#last_result}}
Last run: {{date-format date format="DD MMM YYYY"}}<br/> <li class="danger">{{count.error}}</li>
Errors: {{count.error}} <li class="warning">{{count.warning}}</li>
{{/last_result}} <li class="info">{{count.notice}}</li>
{{/last_result}}
</ul>
Last run {{date-format date format="DD MMM YYYY"}}
{{else}}
<p class="no-results">No results</p>
{{/if}}
</a> </a>
</li> </li>
{{/tasks}} {{/tasks}}

View File

@@ -3,8 +3,6 @@
Task: {{task.url}} ({{task.standard}}) Task: {{task.url}} ({{task.standard}})
{{/content}} {{/content}}
<a href="/">&laquo; all tasks</a>
<h1>Task: {{task.url}} ({{task.standard}})</h1> <h1>Task: {{task.url}} ({{task.standard}})</h1>
{{#added}} {{#added}}