This commit is contained in:
Petko Bordjukov 2014-10-15 11:48:01 +03:00
parent eceed74020
commit d1f49a4218
5 changed files with 30 additions and 23 deletions

View File

@ -1,6 +1,6 @@
.navigation {
@extend .navbar;
@extend .navbar-default;
@extend .navbar-inverse;
@extend .navbar-static-top;
.header {

View File

@ -36,7 +36,6 @@ html
- Conference.where.not(id: @conference.id).each do |conference|
li
= link_to conference.title, management_conference_path(conference)
li.dropdown
a.dropdown-toggle href="#" data-toggle="dropdown"
i.fa.fa-flag.fa-fw>
@ -48,13 +47,17 @@ html
= link_to t("locales.#{locale}"), "?locale=#{locale}"
.sidebar.collapsable
ul.nav#side-menu
li
a.active href="index.html"
i.fa.fa-dashboard.fa-fw
| Dashboard
li class="#{controller_name == 'conferences' ? 'active' : nil}"
= link_to management_conferences_path
= fa_icon :group, text: Conference.model_name.human(count: 2).mb_chars.capitalize
= fa_icon 'group fw', text: Conference.model_name.human(count: 2).mb_chars.capitalize
ul.nav.nav-second-level
- Conference.all.each do |conference|
li
= link_to conference.title, management_conference_path(conference)
li class="#{controller_name == 'users' ? 'active' : nil}"
= link_to management_users_path
= fa_icon 'user fw', text: User.model_name.human(count: 2).mb_chars.capitalize
div.content#page-wrapper
== yield

View File

@ -10,7 +10,7 @@
.panel-heading
.row
.col-xs-3
= fa_icon 'bullhorn 5x'
= fa_icon 'files-o 5x'
.col-xs-9.text-right
.huge
= @conference.events.count

View File

@ -1,15 +1,20 @@
- content_for :title
= User.model_name.human(count: 2).mb_chars.capitalize
.row
.panel.panel-primary
.panel-heading
h3.panel-title = User.model_name.human(count: 2)
table.record-table
thead
tr
th.picture = SpeakerProfile.human_attribute_name(:picture)
th = User.human_attribute_name(:email)
th = SpeakerProfile.human_attribute_name(:first_name)
th = SpeakerProfile.human_attribute_name(:last_name)
th.admin = SpeakerProfile.human_attribute_name(:admin)
th.actions
tbody
= render @users
.col-lg-12
.panel.panel-primary
.panel-heading
h3.panel-title = User.model_name.human(count: 2)
.panel-body
table.table.table-striped data-table="true"
thead
tr
th.picture = SpeakerProfile.human_attribute_name(:picture)
th = User.human_attribute_name(:email)
th = SpeakerProfile.human_attribute_name(:first_name)
th = SpeakerProfile.human_attribute_name(:last_name)
th.admin = SpeakerProfile.human_attribute_name(:admin)
th.actions
tbody
= render @users

View File

@ -33,7 +33,6 @@ Rails.application.routes.draw do
get 'undecided'
get 'backup'
get 'confirmed'
post 'send_acceptance_notifications'
end
end
end