mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	BS3: dashboard.
This commit is contained in:
		
							parent
							
								
									7fbb40e9f9
								
							
						
					
					
						commit
						2dd48c5b65
					
				| @ -6,7 +6,7 @@ body { | |||||||
|   white-space: nowrap; |   white-space: nowrap; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| fieldset { | fieldset, .fieldset { | ||||||
|   margin-top: $line-height-computed; |   margin-top: $line-height-computed; | ||||||
|   margin-bottom: $line-height-computed; |   margin-bottom: $line-height-computed; | ||||||
| } | } | ||||||
| @ -1,20 +1,31 @@ | |||||||
| %h2 Dashboard | %h1 Dashboard | ||||||
| 
 | 
 | ||||||
| %p | .row.fieldset | ||||||
|   %p |   .col-xs-8.col-sm-3.col-lg-2 | ||||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: new_time_entry_path} Add Time Entry |     %p= link_to 'Add Time Entry', new_time_entry_path, class: 'btn btn-default btn-block' | ||||||
|   %p |   .col-xs-8.col-sm-3.col-lg-2 | ||||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: time_entries_path} View Timesheet |     %p= link_to 'View Timesheet', time_entries_path, class: 'btn btn-default btn-block' | ||||||
| - if can? :manage, Bike |  | ||||||
|   %p |  | ||||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike |  | ||||||
| 
 | 
 | ||||||
| - if !@bike.nil? | - can_manage_bike = can? :manage, Bike | ||||||
|   %p | - has_bike = !@bike.nil? | ||||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: bike_path(@bike)} View Your Bike | - if can_manage_bike || has_bike | ||||||
|  |   .row.fieldset | ||||||
|  |     - if can_manage_bike | ||||||
|  |       .col-xs-8.col-sm-3.col-lg-2 | ||||||
|  |         %p | ||||||
|  |           = link_to 'Add Bike', new_bike_path, class: 'btn btn-default btn-block' | ||||||
| 
 | 
 | ||||||
| %p |     - if has_bike | ||||||
|   %p |       .col-xs-8.col-sm-3.col-lg-2 | ||||||
|     %a{class: "btn btn-lg btn-block btn-primary hidden-xs", href: admin_index_path} Desktop View |         %p | ||||||
|   %p |           = link_to 'View Your Bike', bike_path(@bike), class: 'btn btn-default btn-block' | ||||||
|     %input{id: "index_logout", value: "Logout", type: "button", class: "btn btn-lg btn-block btn-danger", "data-url" => destroy_user_session_path } | 
 | ||||||
|  | .row.fieldset.hidden-xs | ||||||
|  |   .col-xs-8.col-sm-3.col-lg-2 | ||||||
|  |     %p | ||||||
|  |       = link_to 'Desktop View', admin_index_path, class: 'btn btn-default btn-block' | ||||||
|  | 
 | ||||||
|  | .row.fieldset | ||||||
|  |   .col-xs-8.col-sm-3.col-lg-2 | ||||||
|  |     %p | ||||||
|  |       %input{id: 'index_logout', value: 'Logout', type: 'button', class: 'btn btn-danger btn-block', 'data-url' => destroy_user_session_path} | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user