aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-24 13:30:11 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-24 13:30:11 -0400
commitc1c4c03d394e8701cfd4640d8571afacc83d2ba2 (patch)
tree0090f2fbc06dd3950919565057c4c57dd2aba222 /src
parentbca20f7c94e74f0d7666700829d50efbf70d129c (diff)
downloadguff-c1c4c03d394e8701cfd4640d8571afacc83d2ba2.tar.bz2
guff-c1c4c03d394e8701cfd4640d8571afacc83d2ba2.zip
enable post list
Diffstat (limited to 'src')
-rw-r--r--src/guff.cr1
-rw-r--r--src/views/admin-page.ecr53
2 files changed, 46 insertions, 8 deletions
diff --git a/src/guff.cr b/src/guff.cr
index 6367671..04708ed 100644
--- a/src/guff.cr
+++ b/src/guff.cr
@@ -291,6 +291,7 @@ module Guff
a.posted_at,
a.expires_at,
a.slug,
+ a.slug_lock,
a.name,
(CASE WHEN c.post_id IS NOT NULL THEN
diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr
index ab882ce..39b4de3 100644
--- a/src/views/admin-page.ecr
+++ b/src/views/admin-page.ecr
@@ -83,13 +83,52 @@
<div class='btn-group btn-group-sm'><%=
new_post_button
%></div><!-- btn-group -->
+
+ <div class='btn-group btn-group-sm pull-right'>
+ <a
+ href='#'
+ class='btn btn-default search-toggle'
+ title='Toggle search field.'
+ >
+ <i class='fa fa-search'></i>
+ </a><!-- btn-->
+ </div><!-- btn-group -->
+
+ <div class='btn-group btn-group-sm pull-right'>
+ <a
+ href='#'
+ id='posts-reload'
+ class='btn btn-default'
+ title='Reload posts'
+ >
+ <span class='loading'>
+ <i class='fa fa-refresh'></i>
+ </span>
+
+ <span class='loading hidden'>
+ <i class='fa fa-spinner fa-spin'></i>
+ </span>
+ </a><!-- btn -->
+ </div><!-- btn-group -->
</div><!-- btn-toolbar -->
</div><!-- panel-heading -->
- <div class='panel-body'>
- <p>
- TODO: posts
- </p>
+ <div class='panel-heading hidden search-toggle'>
+ <div class='input-group input-group-sm'>
+ <span class='input-group-addon'>
+ <i class='fa fa-search'></i>
+ </span>
+
+ <input
+ type='text'
+ id='posts-q'
+ class='form-control'
+ title='Enter search terms'
+ />
+ </div><!-- input-group -->
+ </div><!-- panel-heading -->
+
+ <div id='posts' class='list-group'>
</div><!-- panel-body -->
</div><!-- panel -->
</div><!-- tab-pane -->
@@ -103,10 +142,8 @@
<div class='panel-heading'>
</div><!-- panel-heading -->
- <div class='panel-body'>
- <p>
- TODO: files
- </p>
+ <div id='files' class='list-group'>
+ TODO: files
</div><!-- panel-body -->
</div><!-- panel -->
</div><!-- tab-pane -->