thesilverspoon 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,8 +30,7 @@
|
|
30
30
|
</ul>
|
31
31
|
|
32
32
|
<% if !user_signed_in? %>
|
33
|
-
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class =>
|
34
|
-
"pull-right navbar-form"}) do |f| %>
|
33
|
+
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class =>"pull-right navbar-form"}) do |f| %>
|
35
34
|
<%= f.email_field :email, :class=>"input-small", :placeholder=>"Email" %>
|
36
35
|
<%= f.password_field :password, :class=>"input-small", :placeholder=>"Password" %>
|
37
36
|
<%= f.submit "Sign In", :class=>"primary btn" %>
|
@@ -2,76 +2,75 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>BrandName</title>
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
<%= stylesheet_link_tag "application" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
8
|
<script type="text/javascript">
|
9
9
|
$(function() {
|
10
|
-
$(".edit_link").click(function(){
|
11
|
-
$.get("
|
10
|
+
$(".edit_link").click(function() {
|
11
|
+
$.get("<%=params[:controller]%>" + "/" + $(this).attr("id") + "/edit", function(data) {
|
12
12
|
|
13
13
|
$("#edit_form .modal-body").html(data);
|
14
|
-
|
14
|
+
$("#edit_form").modal('toggle');
|
15
15
|
});
|
16
|
-
})
|
16
|
+
});
|
17
17
|
});
|
18
18
|
</script>
|
19
|
-
|
19
|
+
<%= yield(:head) %>
|
20
20
|
</head>
|
21
21
|
<body>
|
22
22
|
<div id="wrapper">
|
23
|
-
<div class="
|
24
|
-
<div class="
|
23
|
+
<div class="navbar navbar-fixed-top" style="z-index: 999999999">
|
24
|
+
<div class="navbar-inner" style="z-index: 999999999">
|
25
25
|
<div class="container">
|
26
26
|
<a class="brand" href="/">BrandName</a>
|
27
27
|
<ul class="nav">
|
28
|
-
|
28
|
+
<li><a href="#about" style="color:white;">About</a></li>
|
29
29
|
<!--<li><a href="#contact" style="color:white;">Contact</a></li>-->
|
30
30
|
</ul>
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<%%= current_user.username %>
|
32
|
+
<% if !user_signed_in? %>
|
33
|
+
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class =>"pull-right navbar-form"}) do |f| %>
|
34
|
+
<%= f.email_field :email, :class=>"input-small", :placeholder=>"Email" %>
|
35
|
+
<%= f.password_field :password, :class=>"input-small", :placeholder=>"Password" %>
|
36
|
+
<%= f.submit "Sign In", :class=>"primary btn" %>
|
37
|
+
<% end %>
|
38
|
+
<% else %>
|
39
|
+
<div class="pull-right" style="margin-top: 10px;color:white;">
|
40
|
+
<%= current_user.email %>
|
42
41
|
<span class="nav_link">
|
43
|
-
|
|
42
|
+
| <%= link_to "Sign out", destroy_user_session_path, :method => :delete, :style=>"color:white;" %>
|
44
43
|
</span>
|
45
|
-
|
46
|
-
|
44
|
+
</div>
|
45
|
+
<% end %>
|
47
46
|
</div>
|
48
47
|
</div>
|
49
48
|
</div>
|
50
49
|
<div class="container">
|
51
50
|
|
52
51
|
<div class="page-header" style="height:100px"></div>
|
53
|
-
<div style="position:absolute;margin-top: -60px;" class="
|
54
|
-
<h2>
|
52
|
+
<div style="position:absolute;margin-top: -60px;" class="span12">
|
53
|
+
<h2> <%= yield(:page_header) %></h2>
|
55
54
|
</div>
|
56
55
|
</div>
|
57
56
|
<div class="container">
|
58
57
|
|
59
58
|
<div class="content">
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
59
|
+
<%= js extend_gritter :position => :bottom_right %>
|
60
|
+
<%= js add_gritter(flash[:notice], :image => :success, :title => "Notice", :sticky => false, :time => 2000) %>
|
61
|
+
<%= js add_gritter(flash[:alert], :image => :warning, :title => "Alert!", :sticky => false, :time => 2000) %>
|
62
|
+
<%= yield %>
|
64
63
|
</div>
|
65
64
|
|
66
|
-
|
65
|
+
<% if request.fullpath=="/" %>
|
67
66
|
|
68
|
-
|
69
67
|
|
70
|
-
|
68
|
+
|
69
|
+
<% end %>
|
71
70
|
</div>
|
72
71
|
</div>
|
73
72
|
|
74
|
-
|
73
|
+
<%= javascript_include_tag "/assets/exclusions/jquery.pageslide" %>
|
75
74
|
|
76
75
|
|
77
76
|
</body>
|
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.26
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-12 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrapped
|
16
|
-
requirement: &
|
16
|
+
requirement: &85801180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *85801180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: gritter
|
27
|
-
requirement: &
|
27
|
+
requirement: &85800290 !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: *85800290
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: spreadsheet
|
38
|
-
requirement: &
|
38
|
+
requirement: &85799600 !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: *85799600
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: carrierwave
|
49
|
-
requirement: &
|
49
|
+
requirement: &85798920 !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: *85798920
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: devise
|
60
|
-
requirement: &
|
60
|
+
requirement: &85797960 !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: *85797960
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: cancan
|
71
|
-
requirement: &
|
71
|
+
requirement: &85794320 !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: *85794320
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: nifty-generators
|
82
|
-
requirement: &
|
82
|
+
requirement: &85793790 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *85793790
|
91
91
|
description: This gem preps a new Rails app with some of the best Rails gems and Jquery
|
92
92
|
sweetness available( Twitter-Bootstrap, Devise, CanCan, Rails Admin, Spreadsheet,
|
93
93
|
) Not only does it takes care of the installation of these gems, it also extends
|