aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-31 02:56:44 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-31 02:56:44 -0400
commit6aaa8ee7916e82069755c4ceb16d08ae48aa84de (patch)
tree983552a24547414d5acb31b0ed5964fae255d8be /src/views
parent49648c04226a692bc14ee642a8d96f15765b75de (diff)
downloadguff-6aaa8ee7916e82069755c4ceb16d08ae48aa84de.tar.bz2
guff-6aaa8ee7916e82069755c4ceb16d08ae48aa84de.zip
refactor mock panels, enable panel add and remove
Diffstat (limited to 'src/views')
-rw-r--r--src/views/panes/admin/home.ecr57
1 files changed, 11 insertions, 46 deletions
diff --git a/src/views/panes/admin/home.ecr b/src/views/panes/admin/home.ecr
index df0c7ec..90b7feb 100644
--- a/src/views/panes/admin/home.ecr
+++ b/src/views/panes/admin/home.ecr
@@ -27,6 +27,8 @@
%></ul><!-- dropdown-menu -->
</div><!-- btn-group -->
+ <%= divider %>
+
<div class='btn-group btn-group-sm home-editing hidden'>
<a
href='#'
@@ -59,54 +61,17 @@
<div id='home' class='panel-body'>
<div class='row'>
- <div class='col-md-4 drop'>
- <div id='p-1' class='panel panel-default'>
- <div class='panel-heading'>
- <%= panel_edit %>
-
- <b>
- Some Panel
- </b>
- </div><!-- panel-heading -->
-
- <div class='panel-body'>
- <p>Some panel.</p>
- </div><!-- panel-body -->
- </div><!-- panel -->
- </div><!-- col-md-4 -->
-
- <div class='col-md-4 drop'>
- <div id='p-2' class='panel panel-default'>
- <div class='panel-heading'>
- <%= panel_edit %>
-
- <b>
- Another Panel
- </b>
- </div><!-- panel-heading -->
-
- <div class='panel-body'>
- <p>Another panel.</p>
- </div><!-- panel-body -->
- </div><!-- panel -->
- </div><!-- col-md-4 -->
-
- <div class='col-md-4 drop'>
- <div id='p-3' class='panel panel-default'>
-
- <div class='panel-heading'>
- <%= panel_edit %>
+ <div class='col-md-4 home-col'><%=
+ mock_panel :p1
+ %></div><!-- col-md-4 -->
- <b>
- Third Panel
- </b>
- </div><!-- panel-heading -->
+ <div class='col-md-4 home-col'><%=
+ mock_panel :p2
+ %></div><!-- col-md-4 -->
- <div class='panel-body'>
- <p>Third panel.</p>
- </div><!-- panel-body -->
- </div><!-- panel -->
- </div><!-- col-md-4 -->
+ <div class='col-md-4 home-col'><%=
+ mock_panel :p3
+ %></div><!-- col-md-4 -->
</div><!-- row -->
</div><!-- panel-body -->
</div><!-- panel -->