cleverua-ui_templates 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/app/.gitkeep +0 -0
- data/app/views/layouts/ui_templates.html.erb +267 -0
- data/config/.gitkeep +0 -0
- data/lib/railties/tasks.rake +39 -0
- data/lib/ui_templates.rb +14 -0
- data/public/images/1downarrow.png +0 -0
- data/public/images/1uparrow.png +0 -0
- data/public/images/2downarrow.png +0 -0
- data/public/images/2uparrow.png +0 -0
- data/public/images/add.png +0 -0
- data/public/images/arrow_collapsed.png +0 -0
- data/public/images/arrow_down.png +0 -0
- data/public/images/arrow_expanded.png +0 -0
- data/public/images/attachment.png +0 -0
- data/public/images/bullet_add.png +0 -0
- data/public/images/bullet_arrow_left.png +0 -0
- data/public/images/bullet_arrow_right.png +0 -0
- data/public/images/bullet_black.png +0 -0
- data/public/images/bullet_blue.png +0 -0
- data/public/images/bullet_delete.png +0 -0
- data/public/images/bullet_diamond.png +0 -0
- data/public/images/bullet_end.png +0 -0
- data/public/images/bullet_go.png +0 -0
- data/public/images/bullet_orange.png +0 -0
- data/public/images/bullet_purple.png +0 -0
- data/public/images/bullet_toggle_minus.png +0 -0
- data/public/images/bullet_toggle_plus.png +0 -0
- data/public/images/calendar.png +0 -0
- data/public/images/cancel.png +0 -0
- data/public/images/changeset.png +0 -0
- data/public/images/close.png +0 -0
- data/public/images/close_hl.png +0 -0
- data/public/images/comment.png +0 -0
- data/public/images/comments.png +0 -0
- data/public/images/copy.png +0 -0
- data/public/images/database_key.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/document.png +0 -0
- data/public/images/draft.png +0 -0
- data/public/images/duplicate.png +0 -0
- data/public/images/edit.png +0 -0
- data/public/images/exclamation.png +0 -0
- data/public/images/external.png +0 -0
- data/public/images/false.png +0 -0
- data/public/images/fav.png +0 -0
- data/public/images/fav_off.png +0 -0
- data/public/images/feed.png +0 -0
- data/public/images/files/c.png +0 -0
- data/public/images/files/csharp.png +0 -0
- data/public/images/files/default.png +0 -0
- data/public/images/files/image.png +0 -0
- data/public/images/files/pdf.png +0 -0
- data/public/images/files/php.png +0 -0
- data/public/images/files/ruby.png +0 -0
- data/public/images/files/text.png +0 -0
- data/public/images/files/xml.png +0 -0
- data/public/images/files/zip.png +0 -0
- data/public/images/folder.png +0 -0
- data/public/images/folder_open.png +0 -0
- data/public/images/folder_open_add.png +0 -0
- data/public/images/folder_open_orange.png +0 -0
- data/public/images/group.png +0 -0
- data/public/images/help.png +0 -0
- data/public/images/history.png +0 -0
- data/public/images/lightning.png +0 -0
- data/public/images/link.png +0 -0
- data/public/images/loading.gif +0 -0
- data/public/images/locked.png +0 -0
- data/public/images/message.png +0 -0
- data/public/images/milestone.png +0 -0
- data/public/images/move.png +0 -0
- data/public/images/news.png +0 -0
- data/public/images/openid-bg.gif +0 -0
- data/public/images/package.png +0 -0
- data/public/images/plugin.png +0 -0
- data/public/images/projects.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/reload.png +0 -0
- data/public/images/report.png +0 -0
- data/public/images/save.png +0 -0
- data/public/images/server_key.png +0 -0
- data/public/images/sort_asc.png +0 -0
- data/public/images/sort_desc.png +0 -0
- data/public/images/stats.png +0 -0
- data/public/images/table_multiple.png +0 -0
- data/public/images/task_done.png +0 -0
- data/public/images/task_late.png +0 -0
- data/public/images/task_parent_end.png +0 -0
- data/public/images/task_todo.png +0 -0
- data/public/images/text_list_bullets.png +0 -0
- data/public/images/textfield.png +0 -0
- data/public/images/ticket.png +0 -0
- data/public/images/ticket_checked.png +0 -0
- data/public/images/ticket_edit.png +0 -0
- data/public/images/ticket_go.png +0 -0
- data/public/images/ticket_note.png +0 -0
- data/public/images/time.png +0 -0
- data/public/images/time_add.png +0 -0
- data/public/images/toggle_check.png +0 -0
- data/public/images/true.png +0 -0
- data/public/images/unlock.png +0 -0
- data/public/images/user.png +0 -0
- data/public/images/warning.png +0 -0
- data/public/images/wiki_edit.png +0 -0
- data/public/images/zoom_in.png +0 -0
- data/public/images/zoom_in_g.png +0 -0
- data/public/images/zoom_out.png +0 -0
- data/public/images/zoom_out_g.png +0 -0
- data/public/stylesheets/themes/basecamp/application.css +125 -0
- data/public/stylesheets/ui_templates.css +921 -0
- data/test/helper.rb +10 -0
- data/test/test_ui_templates.rb +7 -0
- metadata +199 -0
data/.document
ADDED
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Pavlo V. Lysov
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
= ui_templates
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2010 Pavlo V. Lysov. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "cleverua-ui_templates"
|
8
|
+
gem.summary = %Q{Sets up a decent UI template for your rails3 project in a minute}
|
9
|
+
gem.description = %Q{Sets up a decent UI template for your rails3 project in a minut}
|
10
|
+
gem.email = "pavlo@cleverua.com"
|
11
|
+
gem.homepage = "http://github.com/cleverua/ui_templates"
|
12
|
+
gem.authors = ["Pavlo V. Lysov"]
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
Jeweler::GemcutterTasks.new
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'rake/testtask'
|
22
|
+
Rake::TestTask.new(:test) do |test|
|
23
|
+
test.libs << 'lib' << 'test'
|
24
|
+
test.pattern = 'test/**/test_*.rb'
|
25
|
+
test.verbose = true
|
26
|
+
end
|
27
|
+
|
28
|
+
begin
|
29
|
+
require 'rcov/rcovtask'
|
30
|
+
Rcov::RcovTask.new do |test|
|
31
|
+
test.libs << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
task :rcov do
|
37
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
task :test => :check_dependencies
|
42
|
+
|
43
|
+
task :default => :test
|
44
|
+
|
45
|
+
require 'rake/rdoctask'
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
+
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
50
|
+
rdoc.title = "ui_templates #{version}"
|
51
|
+
rdoc.rdoc_files.include('README*')
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/app/.gitkeep
ADDED
File without changes
|
@@ -0,0 +1,267 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
+
<title><%#=h html_title %></title>
|
6
|
+
<meta name="description" content="<%#= Redmine::Info.app_name %>" />
|
7
|
+
<meta name="keywords" content="issue,bug,tracker" />
|
8
|
+
<%= stylesheet_link_tag 'ui_templates', :media => 'all' %>
|
9
|
+
<%= stylesheet_link_tag 'themes/basecamp/application.css', :media => 'all' %>
|
10
|
+
<%= stylesheet_link_tag 'application_mojito', :media => 'all' %>
|
11
|
+
<%= javascript_include_tag :defaults %>
|
12
|
+
<%= yield :header_tags -%>
|
13
|
+
</head>
|
14
|
+
|
15
|
+
<body class="<%#= body_css_classes %>">
|
16
|
+
<div id="wrapper">
|
17
|
+
<div id="wrapper2">
|
18
|
+
<div id="top-menu">
|
19
|
+
<div id="account">
|
20
|
+
<ul><li><a href="/my/account" class="my-account">My account</a></li>
|
21
|
+
<li><a href="/logout" class="logout">Sign out</a></li></ul></div>
|
22
|
+
<div id="loggedas">Logged in as <a href="/account/show/5">CleverUA</a></div>
|
23
|
+
<ul><li><a href="/" class="home">Home</a></li>
|
24
|
+
<li><a href="/my/page" class="my-page">My page</a></li>
|
25
|
+
<li><a href="/projects" class="projects">Projects</a></li>
|
26
|
+
<li><a href="http://www.redmine.org/guide" class="help">Help</a></li></ul>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div id="header">
|
31
|
+
<div id="quick-search">
|
32
|
+
<% form_tag('/', :method => :get ) do %>
|
33
|
+
search :
|
34
|
+
<%= text_field_tag 'q', '', :size => 20, :class => 'small', :accesskey => 'accesskey(:quick_search)' %>
|
35
|
+
<% end %>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div id="main-menu">
|
39
|
+
<ul><li><a href="/projects/redmine" class="overview">Overview</a></li>
|
40
|
+
<li><a href="#" class="download">Downloads</a></li>
|
41
|
+
<li><a href="#" class="activity">Activities</a></li>
|
42
|
+
<li><a href="#" class="issues">Issues</a></li>
|
43
|
+
<li><a href="#" class="news">New</a></li>
|
44
|
+
<li><a href="#" class="wiki selected">Wiki</a></li>
|
45
|
+
<li><a href="#" class="boards">Forums</a></li>
|
46
|
+
<li><a href="#" class="repository">Storage</a></li></ul>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div class="" id="main">
|
51
|
+
<div id="sidebar">
|
52
|
+
<h3>Administration</h3>
|
53
|
+
<div id="admin-menu">
|
54
|
+
<ul>
|
55
|
+
<ul><li><a href="/admin/projects" class="projects">Projects</a></li>
|
56
|
+
<li><a href="/users" class="users selected">Users</a></li>
|
57
|
+
<li><a href="/groups" class="groups">Groups</a></li>
|
58
|
+
<li><a href="/roles" class="roles">Roles and permissions</a></li>
|
59
|
+
<li><a href="/trackers" class="trackers">Trackers</a></li>
|
60
|
+
<li><a href="/issue_statuses" class="issue_statuses issue-statuses">Issue statuses</a></li>
|
61
|
+
<li><a href="/workflows/edit" class="workflows">Workflow</a></li>
|
62
|
+
<li><a href="/custom_fields" class="custom_fields custom-fields">Custom fields</a></li>
|
63
|
+
<li><a href="/enumerations" class="enumerations">Enumerations</a></li>
|
64
|
+
<li><a href="/settings" class="settings">Settings</a></li>
|
65
|
+
<li><a href="/ldap_auth_sources" class="server_authentication ldap-authentication">LDAP authentication</a></li>
|
66
|
+
<li><a href="/admin/plugins" class="plugins">Plugins</a></li>
|
67
|
+
<li><a href="/admin/info" class="info">Information</a></li></ul>
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div id="content">
|
73
|
+
<div class="contextual">
|
74
|
+
<a href="/roles/new" class="icon icon-add">New role</a>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<h2>Roles</h2>
|
78
|
+
|
79
|
+
<table class="list">
|
80
|
+
<thead><tr>
|
81
|
+
<th>Role</th>
|
82
|
+
<th>Sort</th>
|
83
|
+
<th></th>
|
84
|
+
</tr></thead>
|
85
|
+
<tbody>
|
86
|
+
<tr class="odd">
|
87
|
+
<td><span><a href="/roles/edit/3">Manager</a></span></td>
|
88
|
+
<td align="center" style="width:15%;">
|
89
|
+
<a href=""><img alt="Move to bottom" src="/images/2downarrow.png?1266052092" /></a>
|
90
|
+
</td>
|
91
|
+
<td class="buttons">
|
92
|
+
<a href="#">Delete</a>
|
93
|
+
</td>
|
94
|
+
</tr>
|
95
|
+
|
96
|
+
<tr class="even">
|
97
|
+
<td><span><a href="/roles/edit/4">Developer</a></span></td>
|
98
|
+
<td align="center" style="width:15%;">
|
99
|
+
<a href=""><img alt="Move to bottom" src="/images/2downarrow.png?1266052092" /></a>
|
100
|
+
</td>
|
101
|
+
<td class="buttons">
|
102
|
+
<a href="">Delete</a>
|
103
|
+
</td>
|
104
|
+
</tr>
|
105
|
+
|
106
|
+
<tr class="odd">
|
107
|
+
<td><span><a href="/roles/edit/5">Report manager</a></span></td>
|
108
|
+
<td align="center" style="width:15%;">
|
109
|
+
<a href=""><img alt="Move to bottom" src="/images/2downarrow.png?1266052092" /></a>
|
110
|
+
</td>
|
111
|
+
<td class="buttons">
|
112
|
+
<a href="">Delete</a>
|
113
|
+
</td>
|
114
|
+
</tr>
|
115
|
+
|
116
|
+
<tr class="even">
|
117
|
+
<td><em><a href="/roles/edit/1">Non member</a></em></td>
|
118
|
+
<td align="center" style="width:15%;">
|
119
|
+
</td>
|
120
|
+
<td class="buttons">
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
|
124
|
+
<tr class="odd">
|
125
|
+
<td><em><a href="/roles/edit/2">Anonymous</a></em></td>
|
126
|
+
<td align="center" style="width:15%;">
|
127
|
+
</td>
|
128
|
+
<td class="buttons">
|
129
|
+
</td>
|
130
|
+
</tr>
|
131
|
+
|
132
|
+
</tbody>
|
133
|
+
</table>
|
134
|
+
|
135
|
+
<p class="pagination"></p>
|
136
|
+
|
137
|
+
<p><a href="/roles/report">Permissions report</a></p>
|
138
|
+
<hr></hr><p></p>
|
139
|
+
|
140
|
+
<h2>New project</h2>
|
141
|
+
|
142
|
+
<form action="/projects/new" class="tabular" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="NROszTBrU0eKYM0j1DSNGcXySnswZOgyxGq/+mu6oZI=" /></div>
|
143
|
+
|
144
|
+
<div class="box">
|
145
|
+
<!--[form:project]-->
|
146
|
+
<p><label for="project_name">Name<span class="required"> *</span></label><input id="project_name" maxlength="30" name="project[name]" size="30" type="text" value="" /><br /><em>30 characters maximum.</em></p>
|
147
|
+
|
148
|
+
<p><label for="project_description">Description</label><textarea class="wiki-edit" cols="40" id="project_description" name="project[description]" rows="5"></textarea></p>
|
149
|
+
<p><label for="project_identifier">Identifier<span class="required"> *</span></label><input id="project_identifier" maxlength="20" name="project[identifier]" size="20" type="text" />
|
150
|
+
|
151
|
+
<br /><em>Length between 1 and 20 characters. Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier can not be changed.</em>
|
152
|
+
</p>
|
153
|
+
<p><label for="project_homepage">Homepage</label><input id="project_homepage" name="project[homepage]" size="60" type="text" value="" /></p>
|
154
|
+
<p><label for="project_is_public">Public</label><input name="project[is_public]" type="hidden" value="0" /><input checked="checked" id="project_is_public" name="project[is_public]" type="checkbox" value="1" /></p>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<fieldset class="box"><legend>Trackers</legend>
|
158
|
+
<label class="floating">
|
159
|
+
<input checked="checked" id="project_tracker_ids_" name="project[tracker_ids][]" type="checkbox" value="1" />
|
160
|
+
Errors
|
161
|
+
</label>
|
162
|
+
|
163
|
+
<label class="floating">
|
164
|
+
<input checked="checked" id="project_tracker_ids_" name="project[tracker_ids][]" type="checkbox" value="2" />
|
165
|
+
Changes
|
166
|
+
</label>
|
167
|
+
|
168
|
+
<label class="floating">
|
169
|
+
<input checked="checked" id="project_tracker_ids_" name="project[tracker_ids][]" type="checkbox" value="3" />
|
170
|
+
Support
|
171
|
+
</label>
|
172
|
+
|
173
|
+
<input id="project_tracker_ids_" name="project[tracker_ids][]" type="hidden" value="" />
|
174
|
+
</fieldset>
|
175
|
+
|
176
|
+
<fieldset class="box"><legend>Modules</legend>
|
177
|
+
|
178
|
+
<label class="floating">
|
179
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="issue_tracking" />
|
180
|
+
Issue tracking
|
181
|
+
</label>
|
182
|
+
|
183
|
+
<label class="floating">
|
184
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="time_tracking" />
|
185
|
+
Time tracking
|
186
|
+
</label>
|
187
|
+
|
188
|
+
<label class="floating">
|
189
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="news" />
|
190
|
+
News
|
191
|
+
</label>
|
192
|
+
|
193
|
+
<label class="floating">
|
194
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="documents" />
|
195
|
+
Documents
|
196
|
+
</label>
|
197
|
+
|
198
|
+
<label class="floating">
|
199
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="files" />
|
200
|
+
Files
|
201
|
+
</label>
|
202
|
+
|
203
|
+
<label class="floating">
|
204
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="wiki" />
|
205
|
+
Wiki
|
206
|
+
</label>
|
207
|
+
|
208
|
+
<label class="floating">
|
209
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="repository" />
|
210
|
+
Repository
|
211
|
+
</label>
|
212
|
+
|
213
|
+
<label class="floating">
|
214
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="boards" />
|
215
|
+
Boards
|
216
|
+
</label>
|
217
|
+
|
218
|
+
<label class="floating">
|
219
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="calendar" />
|
220
|
+
Calendar
|
221
|
+
</label>
|
222
|
+
|
223
|
+
<label class="floating">
|
224
|
+
<input checked="checked" id="enabled_modules_" name="enabled_modules[]" type="checkbox" value="gantt" />
|
225
|
+
Gantt
|
226
|
+
</label>
|
227
|
+
|
228
|
+
</fieldset>
|
229
|
+
|
230
|
+
<input name="commit" type="submit" value="Save" />
|
231
|
+
</form>
|
232
|
+
<p></p>
|
233
|
+
|
234
|
+
<div class="contextual">
|
235
|
+
<a href="/my/page_layout">Personalize this page</a>
|
236
|
+
</div>
|
237
|
+
<h2>My page</h2>
|
238
|
+
<div id="list-top">
|
239
|
+
</div>
|
240
|
+
<div id="list-left" class="splitcontentleft">
|
241
|
+
<div class="mypage-box">
|
242
|
+
<h3>Issues assigned to me (0)</h3>
|
243
|
+
<p class="nodata">No data to display</p>
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div id="list-right" class="splitcontentright">
|
247
|
+
<div class="mypage-box">
|
248
|
+
<h3>Reported issues (0)</h3>
|
249
|
+
<p class="nodata">No data to display</p>
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div id="ajax-indicator" style="display:none;"><span><%#= l(:label_loading) %></span></div>
|
258
|
+
|
259
|
+
<div id="footer">
|
260
|
+
<div class="bgl"><div class="bgr">
|
261
|
+
Powered by <%= link_to "Redmine", "http://redmine.org" %> © 2006-2010 Jean-Philippe Lang
|
262
|
+
</div></div>
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
</body>
|
267
|
+
</html>
|
data/config/.gitkeep
ADDED
File without changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
class UiTemplatesTasks
|
4
|
+
|
5
|
+
def self.self_layouts_dir
|
6
|
+
File.join(File.dirname(__FILE__), '..', '..', 'app', 'views', 'layouts')
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.self_styles_dir
|
10
|
+
File.join(File.dirname(__FILE__), '..', '..', 'public', 'stylesheets')
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.rails_layouts_dir
|
14
|
+
File.join(RAILS_ROOT, 'app', 'views', 'layouts')
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.rails_styles_dir
|
18
|
+
File.join(RAILS_ROOT, 'public', 'styleshets')
|
19
|
+
end
|
20
|
+
|
21
|
+
namespace :ui_templates do
|
22
|
+
|
23
|
+
desc "Copy the layout view to RAILS_ROOT/app/views"
|
24
|
+
task :copy_layout => :environment do
|
25
|
+
source = File.join(self_layouts_dir, 'ui_templates.html.erb')
|
26
|
+
cp source, rails_layouts_dir
|
27
|
+
end
|
28
|
+
|
29
|
+
task :copy_styles => :environment do
|
30
|
+
source = File.join(self_styles_dir, 'ui_templates.css')
|
31
|
+
cp source, rails_styles_dir
|
32
|
+
|
33
|
+
sh "mkdir -p #{rails_styles_dir}/themes/basecamp" unless File.exists?("#{rails_styles_dir}/themes/basecamp")
|
34
|
+
source = File.join(self_styles_dir, 'themes', 'basecamp', 'application.css')
|
35
|
+
cp source, "#{rails_styles_dir}/themes/basecamp"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
data/lib/ui_templates.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module UiTemplates
|
4
|
+
class Engine < Rails::Engine
|
5
|
+
initializer "static assets" do |app|
|
6
|
+
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
|
7
|
+
end
|
8
|
+
|
9
|
+
rake_tasks do
|
10
|
+
load "#{root}/lib/railties/tasks.rake"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|