diff --git a/app/assets/javascripts/admin/admin.js.coffee b/app/assets/javascripts/admin/admin.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/admin.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/call_for_papers.js.coffee b/app/assets/javascripts/admin/call_for_papers.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/call_for_papers.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/conference.js.coffee b/app/assets/javascripts/admin/conference.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/conference.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/people.js.coffee b/app/assets/javascripts/admin/people.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/people.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/supporters.js.coffee b/app/assets/javascripts/admin/supporters.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/supporters.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/users.js.coffee b/app/assets/javascripts/admin/users.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/users.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/javascripts/admin/venue.js.coffee b/app/assets/javascripts/admin/venue.js.coffee deleted file mode 100644 index 76156794..00000000 --- a/app/assets/javascripts/admin/venue.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/stylesheets/admin/admin.css.scss b/app/assets/stylesheets/admin/admin.css.scss deleted file mode 100644 index 914a004c..00000000 --- a/app/assets/stylesheets/admin/admin.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/admin controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/call_for_papers.css.scss b/app/assets/stylesheets/admin/call_for_papers.css.scss deleted file mode 100644 index 80170c0a..00000000 --- a/app/assets/stylesheets/admin/call_for_papers.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/call_for_papers controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/conference.css.scss b/app/assets/stylesheets/admin/conference.css.scss deleted file mode 100644 index 82491508..00000000 --- a/app/assets/stylesheets/admin/conference.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/conference controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/people.css.scss b/app/assets/stylesheets/admin/people.css.scss deleted file mode 100644 index de8637ff..00000000 --- a/app/assets/stylesheets/admin/people.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/people controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/supporters.css.scss b/app/assets/stylesheets/admin/supporters.css.scss deleted file mode 100644 index 93751779..00000000 --- a/app/assets/stylesheets/admin/supporters.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/supporters controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/users.css.scss b/app/assets/stylesheets/admin/users.css.scss deleted file mode 100644 index 925e3122..00000000 --- a/app/assets/stylesheets/admin/users.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/users controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/venue.css.scss b/app/assets/stylesheets/admin/venue.css.scss deleted file mode 100644 index 6a29a24d..00000000 --- a/app/assets/stylesheets/admin/venue.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the admin/venue controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/osem.css b/app/assets/stylesheets/osem.css index 67c05543..be091d30 100644 --- a/app/assets/stylesheets/osem.css +++ b/app/assets/stylesheets/osem.css @@ -24,6 +24,15 @@ background-color: #f5f5f5; } +.container .credit { + margin: 20px 0; +} + +.nav-collapse .dropdown-menu { + background-color: #e6e6e6; + color: #555555; +} + /* Lastly, apply responsive CSS fixes as necessary */ @media (max-width: 767px) { #footer { @@ -34,41 +43,8 @@ } } -.container#messages { - padding-top: 60px; -} - -.navbar-inner { - background: #299a0b; /* Old browsers */ - background: -moz-linear-gradient(top, #299a0b 0%, #299a0b 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#299a0b), color-stop(100%,#299a0b)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #299a0b 0%,#299a0b 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #299a0b 0%,#299a0b 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #299a0b 0%,#299a0b 100%); /* IE10+ */ - background: linear-gradient(to bottom, #299a0b 0%,#299a0b 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#299a0b', endColorstr='#299a0b',GradientType=0 ); /* IE6-9 */ -} - -.navbar .nav .active > a, .navbar .nav .active > a:hover { - background-color: #DFE0DF; -} - -.navbar .divider-vertical { - background-color: #b4e391; - border-right: 1px solid #eab92d; -} - -.navbar-fixed-top .brand { - color: #ffffff; - text-shadow:none; -} - -.navbar .nav > li > a { - float: none; - padding: 10px 15px 10px; - color: white; - text-decoration: none; - text-shadow: none; +@media screen and (min-width: 980px) { + body { padding-top: 60px; } } .center { diff --git a/app/assets/stylesheets/strap-on.css.scss b/app/assets/stylesheets/strap-on.css.scss index 72c943a5..ee97a596 100644 --- a/app/assets/stylesheets/strap-on.css.scss +++ b/app/assets/stylesheets/strap-on.css.scss @@ -1,2 +1,15 @@ +$navbarBackground: #299a0b; +$navbarBackgroundHighlight: #299a0b; +$navbarBorder: 1px solid #d4d4d4; +$navbarText: #ffffff; +$navbarLinkColor: white; +$navbarLinkColorHover: black; +$navbarLinkBackgroundActive: #DFE0DF; + @import "bootstrap"; @import "bootstrap-responsive"; + +/* Set to navbarBackgroundHighlight otherwise */ +.navbar .nav > li > a { + text-shadow: none; +} \ No newline at end of file diff --git a/app/controllers/admin/callforpapers_controller.rb b/app/controllers/admin/callforpapers_controller.rb index c4534af7..74eaaf2e 100644 --- a/app/controllers/admin/callforpapers_controller.rb +++ b/app/controllers/admin/callforpapers_controller.rb @@ -1,6 +1,5 @@ class Admin::CallforpapersController < ApplicationController before_filter :verify_organizer - layout "admin" def show @cfp = @conference.call_for_papers diff --git a/app/controllers/admin/conference_controller.rb b/app/controllers/admin/conference_controller.rb index 5bfd4353..7bc5fe79 100644 --- a/app/controllers/admin/conference_controller.rb +++ b/app/controllers/admin/conference_controller.rb @@ -1,6 +1,5 @@ class Admin::ConferenceController < ApplicationController before_filter :verify_organizer - layout "admin" def index @conferences = Conference.all @@ -31,6 +30,7 @@ class Admin::ConferenceController < ApplicationController end def show + @conferences = Conference.all @conference = Conference.find_all_by_short_title(params[:id]).first respond_to do |format| format.html diff --git a/app/controllers/admin/dietchoices_controller.rb b/app/controllers/admin/dietchoices_controller.rb index ad9c7f07..c2b04a23 100644 --- a/app/controllers/admin/dietchoices_controller.rb +++ b/app/controllers/admin/dietchoices_controller.rb @@ -1,6 +1,5 @@ class Admin::DietchoicesController < ApplicationController before_filter :verify_organizer - layout "admin" def show render :diets_list diff --git a/app/controllers/admin/emails_controller.rb b/app/controllers/admin/emails_controller.rb index c5bbb690..fcdc0d6a 100644 --- a/app/controllers/admin/emails_controller.rb +++ b/app/controllers/admin/emails_controller.rb @@ -1,6 +1,5 @@ class Admin::EmailsController < ApplicationController before_filter :verify_organizer - layout "admin" def update @conference.email_settings.update_attributes(params[:email_settings]) diff --git a/app/controllers/admin/events_controller.rb b/app/controllers/admin/events_controller.rb index 71e01faa..3cfbf0aa 100644 --- a/app/controllers/admin/events_controller.rb +++ b/app/controllers/admin/events_controller.rb @@ -1,6 +1,5 @@ class Admin::EventsController < ApplicationController before_filter :verify_organizer - layout "admin" # FIXME: The timezome should only be applied on output, otherwise # you get lost in timezone conversions... # around_filter :set_timezone_for_this_request diff --git a/app/controllers/admin/eventtype_controller.rb b/app/controllers/admin/eventtype_controller.rb index 64aa3939..04d8f2e0 100644 --- a/app/controllers/admin/eventtype_controller.rb +++ b/app/controllers/admin/eventtype_controller.rb @@ -1,6 +1,5 @@ class Admin::EventtypeController < ApplicationController before_filter :verify_organizer - layout "admin" def show render :event_type_list diff --git a/app/controllers/admin/people_controller.rb b/app/controllers/admin/people_controller.rb index 3ace22eb..b1ceeafb 100644 --- a/app/controllers/admin/people_controller.rb +++ b/app/controllers/admin/people_controller.rb @@ -1,6 +1,5 @@ class Admin::PeopleController < ApplicationController before_filter :verify_organizer - layout "admin" def index @people = Person.all diff --git a/app/controllers/admin/registrations_controller.rb b/app/controllers/admin/registrations_controller.rb index ee92e8c1..cfd795c5 100644 --- a/app/controllers/admin/registrations_controller.rb +++ b/app/controllers/admin/registrations_controller.rb @@ -1,6 +1,5 @@ class Admin::RegistrationsController < ApplicationController before_filter :verify_organizer - layout "admin" def show session[:return_to] ||= request.referer diff --git a/app/controllers/admin/rooms_controller.rb b/app/controllers/admin/rooms_controller.rb index b736b22f..fb72df5f 100644 --- a/app/controllers/admin/rooms_controller.rb +++ b/app/controllers/admin/rooms_controller.rb @@ -1,6 +1,5 @@ class Admin::RoomsController < ApplicationController before_filter :verify_organizer - layout "admin" def show render :rooms_list diff --git a/app/controllers/admin/social_events_controller.rb b/app/controllers/admin/social_events_controller.rb index 322d6225..3411fc44 100644 --- a/app/controllers/admin/social_events_controller.rb +++ b/app/controllers/admin/social_events_controller.rb @@ -1,6 +1,5 @@ class Admin::SocialEventsController < ApplicationController before_filter :verify_organizer - layout "admin" def show render :social_events_list diff --git a/app/controllers/admin/supporter_levels_controller.rb b/app/controllers/admin/supporter_levels_controller.rb index 5f77e9e4..d36dacd9 100644 --- a/app/controllers/admin/supporter_levels_controller.rb +++ b/app/controllers/admin/supporter_levels_controller.rb @@ -1,6 +1,5 @@ class Admin::SupporterLevelsController < ApplicationController before_filter :verify_organizer - layout "admin" def show render :supporter_levels diff --git a/app/controllers/admin/supporters_controller.rb b/app/controllers/admin/supporters_controller.rb index 12f24b25..8d887ad7 100644 --- a/app/controllers/admin/supporters_controller.rb +++ b/app/controllers/admin/supporters_controller.rb @@ -1,6 +1,5 @@ class Admin::SupportersController < ApplicationController before_filter :verify_organizer - layout "admin" def index respond_to do |format| diff --git a/app/controllers/admin/tracks_controller.rb b/app/controllers/admin/tracks_controller.rb index 0e461894..c7126bdd 100644 --- a/app/controllers/admin/tracks_controller.rb +++ b/app/controllers/admin/tracks_controller.rb @@ -1,6 +1,5 @@ class Admin::TracksController < ApplicationController before_filter :verify_organizer - layout "admin" def show respond_to do |format| diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 35ab58d4..a3126ab6 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -1,6 +1,5 @@ class Admin::UsersController < ApplicationController before_filter :verify_admin - layout "admin" def index @users = User.all(:joins => :person, diff --git a/app/controllers/admin/venue_controller.rb b/app/controllers/admin/venue_controller.rb index d8ad1c5d..15156217 100644 --- a/app/controllers/admin/venue_controller.rb +++ b/app/controllers/admin/venue_controller.rb @@ -1,6 +1,5 @@ class Admin::VenueController < ApplicationController before_filter :verify_organizer - layout "admin" def index end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b33ce2ed..fe7d2950 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,11 @@ class ApplicationController < ActionController::Base include ApplicationHelper protect_from_forgery + before_filter :get_conferences + + def get_conferences + @conferences =Conference.all + end def verify_user :authenticate_user! diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 4f5e1539..fc91c1e5 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,6 +1,6 @@ class HomeController < ApplicationController def index @today = Date.current - @conferences = Conference.where("start_date >= ?", @today) + @current = Conference.where("start_date >= ?", @today) end end diff --git a/app/helpers/admin/call_for_papers_helper.rb b/app/helpers/admin/call_for_papers_helper.rb deleted file mode 100644 index 6e8ba54b..00000000 --- a/app/helpers/admin/call_for_papers_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::CallForPapersHelper -end diff --git a/app/helpers/admin/conference_helper.rb b/app/helpers/admin/conference_helper.rb deleted file mode 100644 index c17678c0..00000000 --- a/app/helpers/admin/conference_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::ConferenceHelper -end diff --git a/app/helpers/admin/people_helper.rb b/app/helpers/admin/people_helper.rb deleted file mode 100644 index a6e7e7fa..00000000 --- a/app/helpers/admin/people_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::PeopleHelper -end diff --git a/app/helpers/admin/supporters_helper.rb b/app/helpers/admin/supporters_helper.rb deleted file mode 100644 index c30aa63b..00000000 --- a/app/helpers/admin/supporters_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::SupportersHelper -end diff --git a/app/helpers/admin/users_helper.rb b/app/helpers/admin/users_helper.rb deleted file mode 100644 index 5995c2aa..00000000 --- a/app/helpers/admin/users_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::UsersHelper -end diff --git a/app/helpers/admin/venue_helper.rb b/app/helpers/admin/venue_helper.rb deleted file mode 100644 index 409948c7..00000000 --- a/app/helpers/admin/venue_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Admin::VenueHelper -end diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb deleted file mode 100644 index 23de56ac..00000000 --- a/app/helpers/home_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module HomeHelper -end diff --git a/app/views/admin/conference/_sidebar.html.haml b/app/views/admin/conference/_sidebar.html.haml index d1be9836..17c35727 100644 --- a/app/views/admin/conference/_sidebar.html.haml +++ b/app/views/admin/conference/_sidebar.html.haml @@ -1,5 +1,8 @@ .well.sidebar-nav %ul.nav.nav-list + %li.nav-header + =@conference.short_title + Settings - if activated == "Conference" %li.active= link_to "Conference", "#" - else diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index ab019c3c..f45fb7eb 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -4,7 +4,7 @@ -<% @conferences.each do |conference| %> +<% @current.each do |conference| %>