csrf token & collapsible note content
This commit is contained in:
parent
ab4a743b88
commit
84def84f55
|
@ -3,18 +3,17 @@
|
|||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p>
|
||||
<hr>
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<p class="noteContent">{{.Content}}</p>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/incomplete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-share"></span> Mark incomplete</a>
|
||||
<span class="glyphicon glyphicon-eye-close"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span> Trash</a>
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<!--<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p>
|
||||
<hr>
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<p class="noteContent">{{.Content}}</p>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
|
@ -28,11 +27,11 @@
|
|||
</li>!-->
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/delete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span> Delete</a>
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span> Restore</a>
|
||||
<span class="glyphicon glyphicon-inbox"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<div class="form-group">
|
||||
<!-- <label for="note-title" class="control-label">Title:</label> -->
|
||||
<input type="text" name="title" class="form-control" id="add-note-title" placeholder="Title" style="border:none;border-bottom:1px solid gray; box-shadow:none;">
|
||||
<input type="hidden" name="CSRFToken" value={{.CSRFToken}}>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- <label for="note-content" class="control-label">Content:</label> -->
|
||||
|
@ -43,18 +44,18 @@
|
|||
<span class="glyphicon glyphicon-time"></span> {{.Created}}</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span> Mask</a></li>
|
||||
<span class="glyphicon glyphicon-lock"></span></a></li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span> Trash</a>
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span> Complete</a>
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span> Edit</a>
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -67,7 +68,7 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "footer.gtpl"}}
|
||||
{{template "_footer.html" .}}
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p>
|
||||
<hr>
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<p class="noteContent">{{.Content}}</p>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
|
@ -14,15 +13,15 @@
|
|||
<span class="glyphicon glyphicon-lock"></span> Mask</a></li> !-->
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span> Trash</a>
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span> Complete</a>
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span> Edit</a>
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue