forked from RailsApps/rails3-application-templates
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d374e8a
commit 92ff22f
Showing
21 changed files
with
298 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ http://railsapps.github.com/ | |
|
||
________________________ | ||
|
||
License | ||
License |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<% flash.each do |name, msg| %> | ||
<div class="alert alert-<%= name == :notice ? "success" : "error" %>"> | ||
<a class="close" data-dismiss="alert">×</a> | ||
<%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- flash.each do |name, msg| | ||
%div{:class => "alert alert-#{name == :notice ? "success" : "error"}"} | ||
%a.close{"data-dismiss" => "alert"} × | ||
= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<% flash.each do |name, msg| %> | ||
<%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- flash.each do |name, msg| | ||
= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<%= link_to "App_Name", root_path, :class => 'brand' %> | ||
<ul class="nav"> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Login', new_user_session_path %> | ||
</li> | ||
<% end %> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Edit account', edit_user_registration_path %> | ||
</li> | ||
<% if current_user.has_role? :admin %> | ||
<li> | ||
<%= link_to 'Admin', users_path %> | ||
</li> | ||
<% end %> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Sign up', new_user_registration_path %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
= link_to "App_Name", root_path, :class => 'brand' | ||
%ul.nav | ||
- if user_signed_in? | ||
%li | ||
= link_to('Logout', destroy_user_session_path, :method=>'delete') | ||
- else | ||
%li | ||
= link_to('Login', new_user_session_path) | ||
- if user_signed_in? | ||
%li | ||
= link_to('Edit account', edit_user_registration_path) | ||
- if current_user.has_role? :admin | ||
%li | ||
= link_to('Admin', users_path) | ||
- else | ||
%li | ||
= link_to('Sign up', new_user_registration_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%= link_to "App_Name", root_path, :class => 'brand' %> | ||
<ul class="nav"> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Login', new_user_session_path %> | ||
</li> | ||
<% end %> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Edit account', edit_user_registration_path %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Sign up', new_user_registration_path %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
= link_to "App_Name", root_path, :class => 'brand' | ||
%ul.nav | ||
- if user_signed_in? | ||
%li | ||
= link_to('Logout', destroy_user_session_path, :method=>'delete') | ||
- else | ||
%li | ||
= link_to('Login', new_user_session_path) | ||
- if user_signed_in? | ||
%li | ||
= link_to('Edit account', edit_user_registration_path) | ||
- else | ||
%li | ||
= link_to('Sign up', new_user_registration_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<%= link_to "App_Name", root_path, :class => 'brand' %> | ||
<ul class="nav"> | ||
<% if user_signed_in? %> | ||
<li> | ||
Logged in as <%= current_user.name %> | ||
</li> | ||
<li> | ||
<%= link_to 'Logout', signout_path %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Login', signin_path %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= link_to "App_Name", root_path, :class => 'brand' | ||
%ul.nav | ||
- if user_signed_in? | ||
%li | ||
Logged in as #{current_user.name} | ||
%li | ||
= link_to('Logout', signout_path) | ||
- else | ||
%li | ||
= link_to('Login', signin_path) |
29 changes: 29 additions & 0 deletions
29
files-v2/app/views/layouts/_navigation-subdomains.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<%= link_to "App_Name", root_path, :class => 'brand' %> | ||
<ul class="nav"> | ||
<li> | ||
<%= link_to 'Main', root_url(:host => request.domain) %> | ||
</li> | ||
<% if request.subdomain.present? && request.subdomain != "www" %> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Edit account', edit_user_registration_url %> | ||
</li> | ||
<li> | ||
<%= link_to 'Logout', destroy_user_session_url, :method=>'delete' %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Login', new_user_session_url %> | ||
</li> | ||
<% end %> | ||
<% else %> | ||
<li> | ||
<%= link_to 'Sign up', new_user_registration_url(:host => request.domain) %> | ||
</li> | ||
<% if user_signed_in? %> | ||
<li> | ||
<%= link_to 'Logout', destroy_user_session_url, :method=>'delete' %> | ||
</li> | ||
<% end %> | ||
<% end %> | ||
</ul> |
19 changes: 19 additions & 0 deletions
19
files-v2/app/views/layouts/_navigation-subdomains.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
= link_to "App_Name", root_path, :class => 'brand' | ||
%ul.nav | ||
%li | ||
= link_to 'Main', root_url(:host => request.domain) | ||
- if request.subdomain.present? && request.subdomain != "www" | ||
- if user_signed_in? | ||
%li | ||
= link_to('Edit account', edit_user_registration_url) | ||
%li | ||
= link_to('Logout', destroy_user_session_url, :method=>'delete') | ||
- else | ||
%li | ||
= link_to('Login', new_user_session_url) | ||
- else | ||
%li | ||
= link_to('Sign up', new_user_registration_url(:host => request.domain)) | ||
- if user_signed_in? | ||
%li | ||
= link_to('Logout', destroy_user_session_url, :method=>'delete') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= link_to "App_Name", root_path, :class => 'brand' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
= link_to "App_Name", root_path, :class => 'brand' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title><%= content_for?(:title) ? yield(:title) : "App_Name" %></title> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
<%= yield(:head) %> | ||
</head> | ||
<body> | ||
<header class="navbar navbar-fixed-top"> | ||
<nav class="navbar-inner"> | ||
<div class="container"> | ||
<%= render 'layouts/navigation' %> | ||
</div> | ||
</nav> | ||
</header> | ||
<div id="main" role="main"> | ||
<div class="container"> | ||
<div class="content"> | ||
<div class="row"> | ||
<div class="span12"> | ||
<%= render 'layouts/messages' %> | ||
<%= yield %> | ||
</div> | ||
</div> | ||
<footer> | ||
</footer> | ||
</div> | ||
</div> <!--! end of .container --> | ||
</div> <!--! end of #main --> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
files-v2/app/views/layouts/application-bootstrap.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
!!! | ||
%html | ||
%head | ||
%meta{:charset => "utf-8"} | ||
%meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"} | ||
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"} | ||
%title= content_for?(:title) ? yield(:title) : "App_Name" | ||
%meta{:content => "", :name => "description"} | ||
%meta{:content => "", :name => "author"} | ||
= stylesheet_link_tag "application", :media => "all" | ||
= javascript_include_tag "application" | ||
= csrf_meta_tags | ||
= yield(:head) | ||
%body | ||
%header.navbar.navbar-fixed-top | ||
%nav.navbar-inner | ||
.container | ||
= render 'layouts/navigation' | ||
#main{:role => "main"} | ||
.container | ||
.content | ||
.row | ||
.span12 | ||
= render 'layouts/messages' | ||
= yield | ||
%footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>App_Name</title> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
<div id="container" class="container"> | ||
<header> | ||
<%= render 'layouts/navigation' %> | ||
<%= render 'layouts/messages' %> | ||
</header> | ||
<div id="main" role="main"> | ||
<%= yield %> | ||
</div> | ||
<footer> | ||
</footer> | ||
</div> <!--! end of #container --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
!!! | ||
%html | ||
%head | ||
%title App_Name | ||
%meta{:charset => "utf-8"} | ||
%meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"} | ||
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"} | ||
= stylesheet_link_tag :application, :media => "all" | ||
= javascript_include_tag :application | ||
= csrf_meta_tags | ||
%body | ||
#container.container | ||
%header | ||
= render 'layouts/navigation' | ||
= render 'layouts/messages' | ||
#main{:role => "main"} | ||
= yield | ||
%footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* the humans responsible & colophon */ | ||
/* humanstxt.org */ | ||
|
||
|
||
/* TEAM */ | ||
<your title>: <your name> | ||
Site: | ||
Twitter: | ||
Location: | ||
|
||
/* THANKS */ | ||
Daniel Kehoe (@rails_apps) for the RailsApps project | ||
|
||
/* SITE */ | ||
Standards: HTML5, CSS3 | ||
Components: jQuery | ||
Software: Ruby on Rails | ||
|
||
/* GENERATED BY */ | ||
RailsApps application template: http://railsapps.github.com/ |