all templates now look the same

This commit is contained in:
Suraj 2016-02-29 07:35:15 +05:30
parent 49c91632e0
commit 3d83dcd080
2 changed files with 33 additions and 44 deletions

View File

@ -1,32 +1,27 @@
{{template "_head.html" .}} {{template "_head.html" .}}
<div class="timeline"> <div class="timeline">
{{ if .Tasks}} {{ if .Tasks}} {{range $key, $value := .Tasks}}
{{range .Tasks}}
<div class="note"> <div class="note">
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span> <p class="noteHeading">{{$value.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
<span class="noteContent">{{.Content}}</span> <span class="noteContent">{{$value.Content}}</span>
<span class="notefooter"> <span class="notefooter">
<ul class="menu"> <ul class="menu">
<li role="presentation">Priority: {{.Priority}}</li> <li role="presentation">Priority: {{$value.Priority}}</li>
<li role="presentation"> <li role="presentation">
<a role="menuitem" tabindex="-1" href="/incomplete/{{.Id}}"> <span class="glyphicon glyphicon-time"></span> {{$value.Created}}</li>
<span class="glyphicon glyphicon-eye-close"></span></a>
</li>
<li role="presentation"> <li role="presentation">
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}"> <a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
<span class="glyphicon glyphicon-trash"></span></a> <span class="glyphicon glyphicon-trash"></span></a>
</li> </li>
<!--<li role="presentation"> <li role="presentation">
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}"> <a role="menuitem" tabindex="-1" href="/incomplete/{{.Id}}">
<span class="glyphicon glyphicon-lock"></span> Mask</a> <span class="glyphicon glyphicon-eye-close"></span>
</a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a role="menuitem" tabindex="-1" href="/archive/{{.Id}}"> <a href="/category/{{$value.Category}}"> {{$value.Category}}</a>
<span class="glyphicon glyphicon-inbox"></span> Edit</a>
</li> </li>
<!-- <li role="presentation"><a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
<span class="glyphicon glyphicon-inbox"></span> Restore</a></li> -->
</ul> </ul>
</span> </span>
</div> </div>

View File

@ -7,34 +7,28 @@
{{end}} {{end}}
<div class="timeline"> <div class="timeline">
{{ if .Tasks}} {{ if .Tasks}} {{range $key, $value := .Tasks}}
{{range .Tasks}}
<div class="note"> <div class="note">
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span> <p class="noteHeading">{{$value.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
<span class="noteContent">{{.Content}}</span> <span class="noteContent">{{$value.Content}}</span>
<span class="notefooter"> <span class="notefooter">
<ul class="menu"> <ul class="menu">
<!-- <li role="presentation"> <li role="presentation"> <a role="menuitem" tabindex="-1" href="/delete/{{.Id}}">
<a role="menuitem" tabindex="-1" href="/share/{{.Id}}">
<span class="glyphicon glyphicon-share"></span> Share</a>
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
<span class="glyphicon glyphicon-lock"></span> Mask</a>
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/archive/{{.Id}}">
<span class="glyphicon glyphicon-inbox"></span> Edit</a>
</li>!-->
<li role="presentation">Priority: {{.Priority}}</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/delete/{{.Id}}">
<span class="glyphicon glyphicon-trash"></span></a> <span class="glyphicon glyphicon-trash"></span></a>
</li> </li>
<li role="presentation"> <li role="presentation">
<a role="menuitem" tabindex="-1" href="/restore/{{.Id}}"> <a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
<span class="glyphicon glyphicon-inbox"></span></a> <span class="glyphicon glyphicon-inbox"></span></a>
</li> </li>
<li role="presentation">Priority: {{$value.Priority}}</li>
<li role="presentation">
<span class="glyphicon glyphicon-time"></span> {{$value.Created}}</li>
<li role="presentation">
<a href="/category/{{$value.Category}}"> {{$value.Category}}</a>
</li>
</ul> </ul>
</span> </span>
</div> </div>