tasks content visibility can be toggled

This commit is contained in:
Suraj patil 2016-01-10 19:28:24 +05:30
parent 8c0d0dc0fe
commit abdcc8f764
3 changed files with 13 additions and 3 deletions

View File

@ -142,6 +142,14 @@ hr{
.noteContent { .noteContent {
padding-top: 7px; padding-top: 7px;
font-size: 0.9em; font-size: 0.9em;
display: none;
}
.toggle{
height: 30px;
padding:1px;
margin-top:-30px;
float:right;
} }
.notefooter{ .notefooter{

View File

@ -40,5 +40,7 @@ $(document).ready(function(){
} }
} }
);*/ );*/
$('.toggle').click(function(){
$(this).next().toggle();
});
}); });

View File

@ -34,8 +34,8 @@
<div class="timeline"> <div class="timeline">
{{ if .Tasks}} {{range .Tasks}} {{ if .Tasks}} {{range .Tasks}}
<div class="note"> <div class="note">
<p class="noteHeading">{{.Title}}</p> <p class="noteHeading">{{.Title}}</p> <button class="toggle btn btn-primary">toggle</button>
<hr>
<p class="noteContent">{{.Content}}</p> <p class="noteContent">{{.Content}}</p>
<span class="notefooter"> <span class="notefooter">
<ul class="menu"> <ul class="menu">