diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-28 08:27:41 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-28 08:27:41 -0400 |
commit | 8828d7189173dfdf8c88082cf69d1eb74d89e9a7 (patch) | |
tree | 197be3ea04ece47eef269ebd5b394c878076fafc /src/views/panes/admin | |
parent | bff93d5b6a46e6c996e43dc4d669a4514da87cc6 (diff) | |
download | guff-8828d7189173dfdf8c88082cf69d1eb74d89e9a7.tar.bz2 guff-8828d7189173dfdf8c88082cf69d1eb74d89e9a7.zip |
refactor settings panes, simplify admin page
Diffstat (limited to 'src/views/panes/admin')
-rw-r--r-- | src/views/panes/admin/posts.ecr | 2 | ||||
-rw-r--r-- | src/views/panes/admin/settings.ecr | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/src/views/panes/admin/posts.ecr b/src/views/panes/admin/posts.ecr index 5e6571d..5b8e669 100644 --- a/src/views/panes/admin/posts.ecr +++ b/src/views/panes/admin/posts.ecr @@ -33,7 +33,7 @@ :type => "divider", }] + %i{blog page project}.map { |id| # get post type - post_type = Guff::Views::AdminPageView::POST_TYPES[id] + post_type = Guff::POST_TYPES[id] { :id => post_type[:id], diff --git a/src/views/panes/admin/settings.ecr b/src/views/panes/admin/settings.ecr new file mode 100644 index 0000000..0824ce8 --- /dev/null +++ b/src/views/panes/admin/settings.ecr @@ -0,0 +1,23 @@ +<div + id='admin-pane-settings' + class='tab-pane' + role='tabpanel' +> + <div class='panel panel-default'> + <div class='panel-body'> + <div class='row'> + <div class='col-md-3'> + <ul class='nav nav-pills nav-stacked' role='tablist'><%= + tabs + %></ul><!-- nav --> + </div><!-- col-md-3 --> + + <div class='col-md-9'> + <div class='tab-content'><%= + panes + %></div><!-- tab-content --> + </div><!-- col-md-9 --> + </div><!-- row --> + </div><!-- panel-body --> + </div><!-- panel --> +</div><!-- tab-pane --> |