openskip-skip_embedded 0.0.18 → 0.0.19
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.
- data/ChangeLog +5 -0
- data/generators/skip_embedded/templates/app/views/layouts/skip_embedded.html.erb +15 -5
- data/generators/skip_embedded/templates/lib/tasks/skip_embedded.rake +24 -2
- data/generators/skip_embedded/templates/public/stylesheets/skip_embedded.css +65 -1
- data/lib/skip_embedded.rb +3 -1
- data/lib/skip_embedded/helpers.rb +1 -0
- data/rails/init.rb +4 -0
- metadata +1 -1
data/ChangeLog
CHANGED
@@ -11,12 +11,12 @@
|
|
11
11
|
<%= stylesheet_link_tag("application") %>
|
12
12
|
|
13
13
|
<%= yield :stylesheet %>
|
14
|
-
<%= javascript_include_tag(
|
14
|
+
<%= javascript_include_tag(:jquery) %>
|
15
15
|
</head>
|
16
16
|
<body>
|
17
17
|
<div id="header">
|
18
18
|
<div id="logo">
|
19
|
-
<span class="app-name">SKIIP
|
19
|
+
<span class="app-name">SKIIP ---INSERT YOUR APP NAME---</span>
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div id="menu">
|
@@ -26,9 +26,9 @@
|
|
26
26
|
</div>
|
27
27
|
<div class="item"><%= link_to "自分の管理", user_path(current_user) %></div>
|
28
28
|
<div class="item"><a href="FIXME" target="_blank">ヘルプ</a></div>
|
29
|
-
<div class="item"><%= link_to "
|
29
|
+
<div class="item"><%= link_to "ログアウト", signout_url %></div>
|
30
30
|
<% else %>
|
31
|
-
<div class="item"><%= link_to "
|
31
|
+
<div class="item"><%= link_to "ログイン", signin_url %></div>
|
32
32
|
<% end %>
|
33
33
|
<br style="clear: left" />
|
34
34
|
|
@@ -40,7 +40,17 @@
|
|
40
40
|
</div>
|
41
41
|
|
42
42
|
<div id="main">
|
43
|
-
|
43
|
+
<div id="tab_body">
|
44
|
+
<%= yield %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div id="footer">
|
49
|
+
<div class="info">
|
50
|
+
<div class="first">footer-first</div>
|
51
|
+
<div class="second">footer-second</div>
|
52
|
+
</div>
|
53
|
+
<div class="powered_by">powered by </div>
|
44
54
|
</div>
|
45
55
|
</body>
|
46
56
|
<%= javascript_include_tag(:skip) %>
|
@@ -3,16 +3,38 @@
|
|
3
3
|
# # Task goes here
|
4
4
|
# end
|
5
5
|
namespace :skip_embedded do
|
6
|
-
|
6
|
+
require 'skip_embedded'
|
7
|
+
|
8
|
+
desc "fetch clippy and jquery"
|
9
|
+
task :thirdparty => %w[thirdparty:clippy thirdparty:jquery]
|
10
|
+
|
11
|
+
namespace :thirdparty do
|
12
|
+
require 'open-uri'
|
13
|
+
|
7
14
|
desc "fetch clppy.swf from 'http://github.com/mojombo/clippy/raw/master/build/clippy.swf'"
|
8
15
|
task :clippy do
|
9
|
-
require 'open-uri'
|
10
16
|
source = "http://github.com/mojombo/clippy/raw/master/build/clippy.swf"
|
11
17
|
dest = File.expand_path("public/flash", Rails.root)
|
12
18
|
|
13
19
|
fetch(source, dest)
|
14
20
|
end
|
15
21
|
|
22
|
+
desc "fetch #{SkipEmbedded::Dependencies[:jquery]} from 'http://jqueryjs.googlecode.com/files/#{SkipEmbedded::Dependencies[:jquery]}'"
|
23
|
+
task :jquery do
|
24
|
+
source = "http://jqueryjs.googlecode.com/files/#{SkipEmbedded::Dependencies[:jquery]}"
|
25
|
+
dest = File.expand_path("public/javascripts", Rails.root)
|
26
|
+
|
27
|
+
fetch(source, dest)
|
28
|
+
end
|
29
|
+
=begin
|
30
|
+
desc "fetch jquery-ui-1.7.1.custom.zip from 'http://jqueryui.com/download/jquery-ui-1.7.1.custom.zip'"
|
31
|
+
task :jqueryui do
|
32
|
+
source = 'http://jqueryui.com/download/jquery-ui-1.7.1.custom.zip'
|
33
|
+
dest = File.expand_path("tmp/", Rails.root)
|
34
|
+
|
35
|
+
fetch(source, dest)
|
36
|
+
end
|
37
|
+
=end
|
16
38
|
private
|
17
39
|
def fetch(source, dest, filename_from_url = true)
|
18
40
|
if File.directory?(dest) || filename_from_url
|
@@ -31,11 +31,14 @@
|
|
31
31
|
border-color: red;
|
32
32
|
background-color: pink; }
|
33
33
|
|
34
|
+
div#header {
|
35
|
+
height: 55px;
|
36
|
+
}
|
37
|
+
|
34
38
|
div#header div#search {
|
35
39
|
position: absolute;
|
36
40
|
top: 25px;
|
37
41
|
right: 5px;
|
38
|
-
z-index: -1;
|
39
42
|
}
|
40
43
|
|
41
44
|
div#header div#search form {
|
@@ -93,3 +96,64 @@ iframe#ie-select-fix {
|
|
93
96
|
border : 0;
|
94
97
|
position : absolute;
|
95
98
|
}
|
99
|
+
|
100
|
+
body {
|
101
|
+
font-size: 12px;
|
102
|
+
font-family: Verdana, Arial, sans-serif;
|
103
|
+
color: #555555;
|
104
|
+
position: absolute;
|
105
|
+
left: 0;
|
106
|
+
margin: 0;
|
107
|
+
text-align: left;
|
108
|
+
background-color: #ffffff;
|
109
|
+
width: 100%; }
|
110
|
+
|
111
|
+
div#main div#tab_body{
|
112
|
+
background-color:#FFFFFF;
|
113
|
+
margin-right:10px;
|
114
|
+
padding:10px;
|
115
|
+
position:relative;
|
116
|
+
border : 1px dashed silver;
|
117
|
+
}
|
118
|
+
|
119
|
+
img {
|
120
|
+
vertical-align: middle;
|
121
|
+
border: 0; }
|
122
|
+
|
123
|
+
a {
|
124
|
+
text-decoration: none;
|
125
|
+
color: #0080dd; }
|
126
|
+
a:hover {
|
127
|
+
color: blue;
|
128
|
+
text-decoration: underline; }
|
129
|
+
|
130
|
+
|
131
|
+
div#footer {
|
132
|
+
color: #A9A9A9;
|
133
|
+
overflow: hidden;
|
134
|
+
text-align: center;
|
135
|
+
position: relative;
|
136
|
+
height: 50px;
|
137
|
+
}
|
138
|
+
div#footer .info {
|
139
|
+
width: 50em;
|
140
|
+
margin: auto;
|
141
|
+
padding: 5px 200px 0 0;
|
142
|
+
}
|
143
|
+
div#footer .info .first {
|
144
|
+
border-bottom:1px dashed silver;
|
145
|
+
padding-bottom:4px;
|
146
|
+
}
|
147
|
+
div#footer .info .second {
|
148
|
+
padding-top: 5px;
|
149
|
+
}
|
150
|
+
div#footer .powered_by {
|
151
|
+
position: absolute; top: 0px; right: 0px;
|
152
|
+
}
|
153
|
+
|
154
|
+
div#main {
|
155
|
+
position: relative;
|
156
|
+
padding: 10px 10px 10px 15px;
|
157
|
+
_width: 100%;
|
158
|
+
background : url("http://user.openskip.org/stylesheets/skins/silver/back.png");
|
159
|
+
}
|
data/lib/skip_embedded.rb
CHANGED
@@ -4,6 +4,7 @@ module SkipEmbedded
|
|
4
4
|
include Sprite
|
5
5
|
|
6
6
|
def self.included(base)
|
7
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery => [Dependencies[:jquery]]
|
7
8
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :skip => %w[dropdown_navigation labeled_text_field]
|
8
9
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :skip_fckeditor => %w[fckeditor/fckeditor skip_fckeditor_config]
|
9
10
|
|
data/rails/init.rb
CHANGED
@@ -4,3 +4,7 @@ Thread.critical{
|
|
4
4
|
SkipEmbedded::InitialSettings.config = File.expand_path("config/initial_settings.yml", Rails.root)
|
5
5
|
SkipEmbedded.instance # force loading
|
6
6
|
}
|
7
|
+
|
8
|
+
config.gem 'gettext', :lib => 'gettext/rails', :version => '1.93.0'
|
9
|
+
config.gem 'moro-repim', :lib => 'repim', :version => '>=0.1.4', :soruce => 'http://gems.github.com/'
|
10
|
+
|