2014-03-31 16:06:15 +08:00
|
|
|
html
|
|
|
|
head
|
2015-04-07 01:19:09 +08:00
|
|
|
meta charset="utf-8"
|
2014-03-31 16:06:15 +08:00
|
|
|
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
2014-04-01 12:07:18 +08:00
|
|
|
title Admin Page for #{ENV['SITE_NAME']}
|
2014-03-31 16:06:15 +08:00
|
|
|
= stylesheet_link_tag "application"
|
|
|
|
= javascript_include_tag "application"
|
|
|
|
= csrf_meta_tags
|
|
|
|
body
|
2016-04-20 23:36:51 +08:00
|
|
|
.title-bar data-responsive-toggle="example-menu" data-hide-for="medium"
|
|
|
|
button class="menu-icon" type="button" data-toggle=''
|
|
|
|
.title-bar-title Menu
|
|
|
|
|
|
|
|
.top-bar#dashboard-topbar
|
|
|
|
.top-bar-left
|
|
|
|
ul.menu
|
|
|
|
li
|
2014-04-01 12:07:18 +08:00
|
|
|
= link_to "Dashboard For #{ENV['SITE_NAME']}", admin_root_path
|
2014-03-31 16:06:15 +08:00
|
|
|
li
|
2015-04-07 01:19:09 +08:00
|
|
|
= link_to t('admin.new_post'), new_admin_post_path
|
2014-03-31 16:06:15 +08:00
|
|
|
li
|
2015-04-07 01:19:09 +08:00
|
|
|
= link_to t('admin.posts'), admin_posts_path
|
2016-04-27 15:42:44 +08:00
|
|
|
li
|
|
|
|
= link_to t('admin.subscribes'), admin_subscribes_path
|
2016-04-20 23:36:51 +08:00
|
|
|
.top-bar-right
|
|
|
|
ul.menu
|
2014-03-31 23:56:19 +08:00
|
|
|
li
|
2015-04-07 01:19:09 +08:00
|
|
|
= link_to t('admin.back'), root_path
|
2014-04-01 08:28:21 +08:00
|
|
|
- if admin_username
|
|
|
|
li
|
2015-04-07 01:19:09 +08:00
|
|
|
= link_to admin_username + ' [ ' + t('admin.logout') + ' ]', admin_session_path(1), method: 'DELETE'
|
2014-03-31 22:13:58 +08:00
|
|
|
- flash.each do |name, msg|
|
|
|
|
- if msg.is_a?(String)
|
2016-04-20 23:36:51 +08:00
|
|
|
div class=("callout #{name.to_sym == :notice ? "success" : "alert"}") data-closable=""
|
2014-03-31 22:13:58 +08:00
|
|
|
= content_tag :div, msg
|
2016-04-20 23:36:51 +08:00
|
|
|
button.close-button type='button' data-close='' ×
|
2014-03-31 17:24:46 +08:00
|
|
|
.admin-main-field ng-app="app"
|
|
|
|
= yield
|
2014-03-31 16:06:15 +08:00
|
|
|
= render "layouts/footer"
|