thesilverspoon 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/templates/actions/new.rb~ +4 -0
- data/lib/templates/assets/stylesheets/silverspoon.css.scss~ +29 -0
- data/lib/templates/controller.rb~ +4 -0
- data/lib/templates/layouts/application.html.erb~ +83 -0
- data/lib/templates/views/erb/edit.html.erb~ +6 -0
- data/lib/templates/views/erb/index.html.erb~ +32 -0
- data/lib/templates/views/erb/new.html.erb~ +6 -0
- data/lib/templates/views/erb/show.html.erb~ +20 -0
- data/lib/thesilverspoon/version.rb +1 -1
- data/lib/thesilverspoon/version.rb~ +1 -1
- metadata +25 -17
@@ -0,0 +1,29 @@
|
|
1
|
+
@import "bootstrap";
|
2
|
+
|
3
|
+
|
4
|
+
tr.odd {
|
5
|
+
background-color: #e3f5ac;
|
6
|
+
}
|
7
|
+
|
8
|
+
tr.odd td.sorting_1 {
|
9
|
+
background-color: #d7e99f;
|
10
|
+
}
|
11
|
+
|
12
|
+
tr.even {
|
13
|
+
background-color: #ffffff;
|
14
|
+
}
|
15
|
+
|
16
|
+
tr.even td.sorting_1 {
|
17
|
+
background-color: #f2f2f2;
|
18
|
+
}
|
19
|
+
|
20
|
+
td.options {
|
21
|
+
width: 100px;
|
22
|
+
background: olive;
|
23
|
+
}
|
24
|
+
|
25
|
+
td.options a {
|
26
|
+
color: white;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>BrandName</title>
|
5
|
+
<%%= stylesheet_link_tag "application" %>
|
6
|
+
<%%= javascript_include_tag "application" %>
|
7
|
+
<%%= csrf_meta_tags %>
|
8
|
+
<script type="text/javascript">
|
9
|
+
$(function() {
|
10
|
+
$(".edit_link").click(function(){
|
11
|
+
$.get("<%%=params[:controller]%>"+"/"+$(this).attr("id")+"/edit",function(data){
|
12
|
+
|
13
|
+
$("#edit_form .modal-body").html(data);
|
14
|
+
$("#edit_form").modal('toggle');
|
15
|
+
});
|
16
|
+
}) ;
|
17
|
+
});
|
18
|
+
</script>
|
19
|
+
<%%= yield(:head) %>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<div id="wrapper">
|
23
|
+
<div class="topbar" style="z-index: 999999999">
|
24
|
+
<div class="fill">
|
25
|
+
<div class="container">
|
26
|
+
<a class="brand" href="/">BrandName</a>
|
27
|
+
<ul class="nav">
|
28
|
+
<!--<li><a href="#about" style="color:white;">About</a></li>-->
|
29
|
+
<!--<li><a href="#contact" style="color:white;">Contact</a></li>-->
|
30
|
+
</ul>
|
31
|
+
|
32
|
+
<%% if !user_signed_in? %>
|
33
|
+
<%%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class =>
|
34
|
+
"pull-right"}) do |f| %>
|
35
|
+
<%%= f.text_field :email, :class=>"input-small", :placeholder=>"Email" %>
|
36
|
+
<%%= f.password_field :password, :class=>"input-small", :placeholder=>"Password" %>
|
37
|
+
<%%= f.submit "Sign In", :class=>"primary btn" %>
|
38
|
+
<%% end %>
|
39
|
+
<%% else %>
|
40
|
+
<div class="pull-right" style="margin-top: 10px;color:white;">
|
41
|
+
<%%= current_user.username %>
|
42
|
+
<span class="nav_link">
|
43
|
+
| <%%= link_to "Sign out", destroy_user_session_path, :method => :delete, :style=>"color:white;" %>
|
44
|
+
</span>
|
45
|
+
</div>
|
46
|
+
<%% end %>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<div class="container">
|
51
|
+
|
52
|
+
<div class="page-header" style="height:100px"></div>
|
53
|
+
<div style="position:absolute;margin-top: -60px;" class="span16">
|
54
|
+
<h2> <%%= yield(:page_header) %></h2>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
<div class="container">
|
58
|
+
|
59
|
+
<div class="content">
|
60
|
+
<%%= js extend_gritter :position => :bottom_right %>
|
61
|
+
<%%= js add_gritter(flash[:notice], :image => :success, :title => "Notice", :sticky => false, :time => 2000) %>
|
62
|
+
<%%= js add_gritter(flash[:alert], :image => :warning, :title => "Alert!", :sticky => false, :time => 2000) %>
|
63
|
+
<%%= yield %>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<%% if request.fullpath=="/" %>
|
67
|
+
|
68
|
+
<footer>
|
69
|
+
<p>A <a href="http://www.ptotem.com">Ptotem Learning Projects</a> Initiative 2011</p>
|
70
|
+
</footer>
|
71
|
+
|
72
|
+
<%% end %>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<%%= javascript_include_tag "/assets/exclusions/jquery.pageslide" %>
|
77
|
+
|
78
|
+
|
79
|
+
</body>
|
80
|
+
</html>
|
81
|
+
|
82
|
+
|
83
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
<%%= content_for :page_header do %>
|
3
|
+
<%% "<%= plural_name.titleize %>" %>
|
4
|
+
<%% end %>
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<%- for attribute in model_attributes -%>
|
9
|
+
<th><%= attribute.human_name.titleize %></th>
|
10
|
+
<%- end -%>
|
11
|
+
</tr>
|
12
|
+
<%% for <%= instance_name %> in @<%= instances_name %> %>
|
13
|
+
<tr>
|
14
|
+
<%- for attribute in model_attributes -%>
|
15
|
+
<td><%%= <%= instance_name %>.<%= attribute.name %> %></td>
|
16
|
+
<%- end -%>
|
17
|
+
<%- if action? :show -%>
|
18
|
+
<td><%%= link_to "Show", <%= item_path %> %></td>
|
19
|
+
<%- end -%>
|
20
|
+
<%- if action? :edit -%>
|
21
|
+
<td><%%= link_to "Edit", <%= item_path :action => :edit %> %></td>
|
22
|
+
<%- end -%>
|
23
|
+
<%- if action? :destroy -%>
|
24
|
+
<td><%%= link_to "Destroy", <%= item_path %>, :confirm => 'Are you sure?', :method => :delete %></td>
|
25
|
+
<%- end -%>
|
26
|
+
</tr>
|
27
|
+
<%% end %>
|
28
|
+
</table>
|
29
|
+
|
30
|
+
<%- if action? :new -%>
|
31
|
+
<p><%%= link_to "New <%= singular_name.titleize %>", <%= item_path :action => :new %> %></p>
|
32
|
+
<%- end -%>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<span style="color:white"><%% "<%= singular_name.titleize %>" %></span>
|
2
|
+
|
3
|
+
<%- for attribute in model_attributes -%>
|
4
|
+
<p>
|
5
|
+
<strong><%= attribute.human_name.titleize %>:</strong>
|
6
|
+
<%%= @<%= instance_name %>.<%= attribute.name %> %>
|
7
|
+
</p>
|
8
|
+
<%- end -%>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
<%- if action? :edit -%>
|
12
|
+
<%%= link_to "Edit", <%= item_path :action => :edit, :instance_variable => true %> %> |
|
13
|
+
<%- end -%>
|
14
|
+
<%- if action? :destroy -%>
|
15
|
+
<%%= link_to "Destroy", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete %> |
|
16
|
+
<%- end -%>
|
17
|
+
<%- if action? :index -%>
|
18
|
+
<%%= link_to "View All", <%= items_path %> %>
|
19
|
+
<%- end -%>
|
20
|
+
</p>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thesilverspoon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-01 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &73728410 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *73728410
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bootstrap-sass
|
27
|
-
requirement: &
|
27
|
+
requirement: &73728140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *73728140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: gritter
|
38
|
-
requirement: &
|
38
|
+
requirement: &73727820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *73727820
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: spreadsheet
|
49
|
-
requirement: &
|
49
|
+
requirement: &73727480 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *73727480
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: carrierwave
|
60
|
-
requirement: &
|
60
|
+
requirement: &73727160 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *73727160
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: devise
|
71
|
-
requirement: &
|
71
|
+
requirement: &73726950 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *73726950
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: cancan
|
82
|
-
requirement: &
|
82
|
+
requirement: &73726730 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *73726730
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: bootstrap-sass
|
93
|
-
requirement: &
|
93
|
+
requirement: &73726410 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *73726410
|
102
102
|
description: This gem preps a new Rails app with some of the best Rails gems and Jquery
|
103
103
|
sweetness available( Twitter-Bootstrap, Devise, CanCan, Rails Admin, Spreadsheet,
|
104
104
|
) Not only does it takes care of the installation of these gems, it also extends
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/templates/actions/index.rb
|
127
127
|
- lib/templates/actions/integrated_view.rb
|
128
128
|
- lib/templates/actions/new.rb
|
129
|
+
- lib/templates/actions/new.rb~
|
129
130
|
- lib/templates/actions/parse_save_from_excel.rb
|
130
131
|
- lib/templates/actions/show.rb
|
131
132
|
- lib/templates/actions/update.rb
|
@@ -187,10 +188,13 @@ files:
|
|
187
188
|
- lib/templates/assets/stylesheets/jquery-ui-1.8.17.custom.css
|
188
189
|
- lib/templates/assets/stylesheets/jquery_data_table.css
|
189
190
|
- lib/templates/assets/stylesheets/silverspoon.css.scss
|
191
|
+
- lib/templates/assets/stylesheets/silverspoon.css.scss~
|
190
192
|
- lib/templates/controller.rb
|
193
|
+
- lib/templates/controller.rb~
|
191
194
|
- lib/templates/file_uploader.rb
|
192
195
|
- lib/templates/helper.rb
|
193
196
|
- lib/templates/layouts/application.html.erb
|
197
|
+
- lib/templates/layouts/application.html.erb~
|
194
198
|
- lib/templates/layouts/dummy_data.html.erb
|
195
199
|
- lib/templates/layouts/dummy_data.html.erb~
|
196
200
|
- lib/templates/layouts/information_page.html.erb
|
@@ -200,11 +204,15 @@ files:
|
|
200
204
|
- lib/templates/model.rb
|
201
205
|
- lib/templates/views/erb/_form.html.erb
|
202
206
|
- lib/templates/views/erb/edit.html.erb
|
207
|
+
- lib/templates/views/erb/edit.html.erb~
|
203
208
|
- lib/templates/views/erb/index.html.erb
|
209
|
+
- lib/templates/views/erb/index.html.erb~
|
204
210
|
- lib/templates/views/erb/integrated_view.html.erb
|
205
211
|
- lib/templates/views/erb/integrated_view.html.erb~
|
206
212
|
- lib/templates/views/erb/new.html.erb
|
213
|
+
- lib/templates/views/erb/new.html.erb~
|
207
214
|
- lib/templates/views/erb/show.html.erb
|
215
|
+
- lib/templates/views/erb/show.html.erb~
|
208
216
|
- lib/thesilverspoon.rb
|
209
217
|
- lib/thesilverspoon.rb~
|
210
218
|
- lib/thesilverspoon/version.rb
|