omniauth-scaffold 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
|
|
1
|
+
<%= link_to_unless( user.nickname.blank?, image_tag( user.image, size: "18x18", class: "margin_minus2" ), "#{Settings.provider_page}#{user.nickname}", target: "_blank" ) %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<li class="navbar offset2 active"><%= link_to Settings.app_name, :root, class: "brand" %></li>
|
4
4
|
<% unless session[:user_id].blank? %>
|
5
5
|
<%# ログイン済み %>
|
6
|
-
<li><%=
|
6
|
+
<li><%= render partial: '/layouts/user_icon', locals: { user: current_user } %></li>
|
7
7
|
<li class="<%= params[:controller] == 'top' ? 'active' : '' %>"><%= link_to( "Top", { controller: "top" } ) %></li>
|
8
8
|
<li><%= link_to( "Logout", logout_path ) %></li>
|
9
9
|
<% else %>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
<br />
|
27
27
|
|
28
28
|
<center>
|
29
|
-
Developed by <a href="https://twitter.com
|
30
|
-
Designed by <a href="https://twitter.com
|
29
|
+
Developed by <a href="https://twitter.com/<%= Settings.programmer_twitter_id %>/" target="_blank">@<%= Settings.programmer_twitter_id %></a>,
|
30
|
+
Designed by <a href="https://twitter.com/<%= Settings.designer_twitter_id %>/" target="_blank">@<%= Settings.designer_twitter_id %></a>,
|
31
31
|
Licence by <a href="https://creativecommons.org/licenses/by-nc-sa/2.1/jp/" target="_blank">CC BY-NC-SA 2.1</a>
|
32
32
|
</center>
|
33
33
|
|
@@ -1,3 +1,20 @@
|
|
1
|
+
|
2
|
+
body {
|
3
|
+
font-family: Courier, monospace, verdana, arial, helvetica, sans-serif;
|
4
|
+
}
|
5
|
+
|
6
|
+
textarea {
|
7
|
+
font-family: Courier;
|
8
|
+
font-size: 12px;
|
9
|
+
}
|
10
|
+
|
11
|
+
pre {
|
12
|
+
font-family: Courier;
|
13
|
+
font-size: 12px;
|
14
|
+
background-color: #eee;
|
15
|
+
padding: 5px;
|
16
|
+
}
|
17
|
+
|
1
18
|
.navbar .brand {
|
2
19
|
display: block;
|
3
20
|
float: left;
|
data/lib/omniauth-scaffold.rb
CHANGED
@@ -81,6 +81,7 @@ module Omniauth
|
|
81
81
|
content = File.read( "#{@@gem_path}/templates/application.html.erb", encoding: Encoding::UTF_8 )
|
82
82
|
gsub_file "app/views/layouts/application.html.erb", /(<%= yield %>)+/, content.force_encoding('ASCII-8BIT')
|
83
83
|
gsub_file "app/views/layouts/application.html.erb", Regexp.new("<title>#{app_name}</title>"), "<title><%= Settings.app_name %></title>"
|
84
|
+
copy_file( "templates/_user_icon.html.erb", "app/views/layouts/_user_icon.html.erb" )
|
84
85
|
copy_file( "templates/index.html.erb", "app/views/top/index.html.erb" )
|
85
86
|
|
86
87
|
# ----- assets ----- #
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails_config
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- Rakefile
|
122
122
|
- lib/omniauth-scaffold.rb
|
123
123
|
- lib/omniauth-scaffold/templates/README.md
|
124
|
+
- lib/omniauth-scaffold/templates/_user_icon.html.erb
|
124
125
|
- lib/omniauth-scaffold/templates/application.html.erb
|
125
126
|
- lib/omniauth-scaffold/templates/application_controller.rb
|
126
127
|
- lib/omniauth-scaffold/templates/base.css.scss
|