diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/dashboard/show.html.tmpl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/app/views/dashboard/show.html.tmpl b/app/views/dashboard/show.html.tmpl index 899b798..da8552f 100644 --- a/app/views/dashboard/show.html.tmpl +++ b/app/views/dashboard/show.html.tmpl @@ -10,7 +10,7 @@ <script src="/application.js"></script> </head> <body> - <main id="app" class="container"> + <header class="container"> <nav> <ul> <li><strong>SparkleLab✨</strong></li> @@ -23,7 +23,9 @@ </li> </ul> </nav> + </header> + <main id="app" class="container"> <form v-on:submit.prevent="submitSparkle"> <label>/sparkle <input type="text" placeholder="@tanuki for helping me with my homework!" v-model="sparkle" /> </label> <button type="submit" v-bind:disabled="isDisabled">✨ Sparkle</button> @@ -31,12 +33,14 @@ <span class="error">${ errorMessage }</span> <h1>${ heading }</h1> - <div v-for="sparkle in recentSparkles"> - <p> <strong>${ sparkle.sparklee }</strong> ${ sparkle.reason } </p> - </div> - {{range .Sparkles}} - <div>{{ . }}</div> - {{end}} + <article v-for="sparkle in recentSparkles"> + <header> + <a :href="sparkle.author.profile"><strong>@${ sparkle.author.username }</strong></a> says + </header> + <blockquote> + /sparkle <strong>${ sparkle.sparklee }</strong> ${ sparkle.reason } + </blockquote> + </article> </main> </body> </html> |
