mirror of https://github.com/fspc/BikeShed-1.git
Brigitte Warner
11 years ago
5 changed files with 94 additions and 48 deletions
@ -1,5 +1,7 @@ |
|||||
class ApplicationController < ActionController::Base |
class ApplicationController < ActionController::Base |
||||
before_filter :authenticate_user! |
before_filter :authenticate_user! |
||||
protect_from_forgery |
protect_from_forgery |
||||
|
|
||||
|
layout 'application' |
||||
|
|
||||
end |
end |
||||
|
@ -1,21 +0,0 @@ |
|||||
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" |
|
||||
%h2 Dashboard |
|
||||
|
|
||||
%p |
|
||||
%p |
|
||||
%a{class: "btn btn-lg btn-block btn-primary", href: new_time_entry_path} Add Time Entry |
|
||||
%p |
|
||||
%a{class: "btn btn-lg btn-block btn-primary", href: time_entries_path} View Timesheet |
|
||||
- if can? :manage, Bike |
|
||||
%p |
|
||||
%a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike |
|
||||
|
|
||||
- if !@bike.nil? |
|
||||
%p |
|
||||
%a{class: "btn btn-lg btn-block btn-primary", href: bike_path(@bike)} View Your Bike |
|
||||
|
|
||||
%p |
|
||||
%p |
|
||||
%a{class: "btn btn-lg btn-block btn-primary hidden-xs", href: admin_index_path} Desktop View |
|
||||
%p |
|
||||
%input{id: "index_logout", value: "Logout", type: "button", class: "btn btn-lg btn-block btn-danger", "data-url" => destroy_user_session_path } |
|
Loading…
Reference in new issue