activoate 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/README +3 -0
- data/Rakefile +1 -0
- data/activoate.gemspec +25 -0
- data/app/.DS_Store +0 -0
- data/app/assets/.DS_Store +0 -0
- data/app/assets/images/.DS_Store +0 -0
- data/app/assets/images/activo-2/.DS_Store +0 -0
- data/app/assets/images/activo-2/arrow.png +0 -0
- data/app/assets/images/activo-2/avatar.png +0 -0
- data/app/assets/images/activo-2/bgd.jpg +0 -0
- data/app/assets/images/activo-2/boxbar-background.png +0 -0
- data/app/assets/images/activo-2/breadcrumb.png +0 -0
- data/app/assets/images/activo-2/button-background-active.png +0 -0
- data/app/assets/images/activo-2/button-background.png +0 -0
- data/app/assets/images/activo-2/icons/24/about-this-folder.txt +12 -0
- data/app/assets/images/activo-2/icons/24/anchor-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/anchor.png +0 -0
- data/app/assets/images/activo-2/icons/24/cross-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/cross.png +0 -0
- data/app/assets/images/activo-2/icons/24/download-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/download.png +0 -0
- data/app/assets/images/activo-2/icons/24/edit-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/edit.png +0 -0
- data/app/assets/images/activo-2/icons/24/export-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/export.png +0 -0
- data/app/assets/images/activo-2/icons/24/show-hover.png +0 -0
- data/app/assets/images/activo-2/icons/24/show.png +0 -0
- data/app/assets/images/activo-2/icons/about-this-folder.txt +1 -0
- data/app/assets/images/activo-2/icons/add.png +0 -0
- data/app/assets/images/activo-2/icons/application_edit.png +0 -0
- data/app/assets/images/activo-2/icons/calendar-hover.png +0 -0
- data/app/assets/images/activo-2/icons/calendar.png +0 -0
- data/app/assets/images/activo-2/icons/cross.png +0 -0
- data/app/assets/images/activo-2/icons/delete.png +0 -0
- data/app/assets/images/activo-2/icons/download.png +0 -0
- data/app/assets/images/activo-2/icons/edit.png +0 -0
- data/app/assets/images/activo-2/icons/key.png +0 -0
- data/app/assets/images/activo-2/icons/pdf.png +0 -0
- data/app/assets/images/activo-2/icons/search.png +0 -0
- data/app/assets/images/activo-2/icons/see-less.png +0 -0
- data/app/assets/images/activo-2/icons/see-more.png +0 -0
- data/app/assets/images/activo-2/icons/send-mail.png +0 -0
- data/app/assets/images/activo-2/icons/show.png +0 -0
- data/app/assets/images/activo-2/icons/tick.png +0 -0
- data/app/assets/images/activo-2/icons/upload.png +0 -0
- data/app/assets/images/activo-2/logo.png +0 -0
- data/app/assets/images/activo-2/messages/error.png +0 -0
- data/app/assets/images/activo-2/messages/notice.png +0 -0
- data/app/assets/images/activo-2/messages/warning.png +0 -0
- data/app/assets/images/activo-2/search-button.png +0 -0
- data/app/assets/images/activo-2/session/about-this-folder.txt +1 -0
- data/app/assets/images/activo-2/session/account.png +0 -0
- data/app/assets/images/activo-2/session/config.png +0 -0
- data/app/assets/images/activo-2/session/home.png +0 -0
- data/app/assets/images/activo-2/session/logout.png +0 -0
- data/app/assets/images/activo-2/tipsy/tipsy.gif +0 -0
- data/app/assets/images/activo-2/uniform/bg-input-focus.png +0 -0
- data/app/assets/images/activo-2/uniform/bg-input.png +0 -0
- data/app/assets/images/activo-2/uniform/sprite.png +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/activo-2/activo-2.js +81 -0
- data/app/assets/javascripts/activo-2/jquery.localscroll.js +104 -0
- data/app/assets/javascripts/activo-2/jquery.scrollTo.js +150 -0
- data/app/assets/javascripts/activo-2/jquery.tipsy.js +104 -0
- data/app/assets/javascripts/activo-2/jquery.uniform.min.js +1 -0
- data/app/assets/javascripts/activo-2.js +10 -0
- data/app/assets/javascripts/users.js.coffee +3 -0
- data/app/assets/stylesheets/.DS_Store +0 -0
- data/app/assets/stylesheets/activo-2/.DS_Store +0 -0
- data/app/assets/stylesheets/activo-2/attrtastic_changes.sass +62 -0
- data/app/assets/stylesheets/activo-2/base.css +390 -0
- data/app/assets/stylesheets/activo-2/fonts/.DS_Store +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.eot +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.svg +242 -0
- data/app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.ttf +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.woff +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.eot +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.svg +240 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.ttf +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.woff +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.eot +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.svg +240 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.ttf +0 -0
- data/app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.woff +0 -0
- data/app/assets/stylesheets/activo-2/fonts.sass +49 -0
- data/app/assets/stylesheets/activo-2/formtastic_changes.sass +157 -0
- data/app/assets/stylesheets/activo-2/libs/jquery.tipsy.css +9 -0
- data/app/assets/stylesheets/activo-2/libs/uniform.default.css +610 -0
- data/app/assets/stylesheets/activo-2/mixins.sass +22 -0
- data/app/assets/stylesheets/activo-2/style.sass +666 -0
- data/app/assets/stylesheets/activo-2.css +11 -0
- data/app/assets/stylesheets/application.css +7 -0
- data/app/assets/stylesheets/scaffolds.css.scss +56 -0
- data/app/assets/stylesheets/users.css.scss +3 -0
- data/app/helpers/activo_helper.rb +290 -0
- data/config.ru +4 -0
- data/lib/activoate/engine.rb +6 -0
- data/lib/activoate/version.rb +3 -0
- data/lib/activoate.rb +5 -0
- data/lib/generators/activoate/activated/activated_generator.rb +140 -0
- data/lib/generators/activoate/activated/templates/view_edit.html.erb +17 -0
- data/lib/generators/activoate/activated/templates/view_form.html.erb +16 -0
- data/lib/generators/activoate/activated/templates/view_form_formtastic.html.erb +18 -0
- data/lib/generators/activoate/activated/templates/view_new.html.erb +16 -0
- data/lib/generators/activoate/activated/templates/view_show.html.erb +26 -0
- data/lib/generators/activoate/activated/templates/view_show_attrtastic.html.erb +27 -0
- data/lib/generators/activoate/activated/templates/view_sidebar.html.erb +13 -0
- data/lib/generators/activoate/activated/templates/view_signin.html.erb +36 -0
- data/lib/generators/activoate/activated/templates/view_signup.html.erb +52 -0
- data/lib/generators/activoate/activated/templates/view_tables.html.erb +56 -0
- data/lib/generators/activoate/activated/templates/view_text.html.erb +18 -0
- data/lib/generators/activoate/install/install_generator.rb +40 -0
- data/lib/generators/activoate/install/templates/layout_admin.html.erb +49 -0
- data/lib/templates/web_app_theme/theme/layout_admin.html.erb +57 -0
- data/lib/templates/web_app_theme/theme/layout_sign.html.erb +15 -0
- data/lib/templates/web_app_theme/theme/web_app_theme.css.erb +9 -0
- metadata +197 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
<h1><%= options[:app_name] %></h1>
|
2
|
+
<div class="block" id="block-login">
|
3
|
+
<h2>Login Box</h2>
|
4
|
+
<div class="content login">
|
5
|
+
<div class="flash">
|
6
|
+
<%% flash.each do |type, message| -%>
|
7
|
+
<div class="message <%%= type %>">
|
8
|
+
<p><%%= message %></p>
|
9
|
+
</div>
|
10
|
+
<%% end -%>
|
11
|
+
</div>
|
12
|
+
<%% form_tag({:action => :create}, :class => 'form login') do -%>
|
13
|
+
<div class="group wat-cf">
|
14
|
+
<div class="left">
|
15
|
+
<label class="label right">Login</label>
|
16
|
+
</div>
|
17
|
+
<div class="right">
|
18
|
+
<%%= text_field_tag :login, @login, :class => 'text_field' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="group wat-cf">
|
22
|
+
<div class="left">
|
23
|
+
<label class="label right">Password</label>
|
24
|
+
</div>
|
25
|
+
<div class="right">
|
26
|
+
<%%= password_field_tag :password, nil, :class => 'text_field' %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<div class="group navform wat-cf">
|
30
|
+
<div class="right">
|
31
|
+
<input type="submit" class="button" value="Sign in" />
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<%% end -%>
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<h1><%= options[:app_name] %></h1>
|
2
|
+
<div class="block" id="block-signup">
|
3
|
+
<h2>Sign up</h2>
|
4
|
+
<div class="content">
|
5
|
+
<div class="flash">
|
6
|
+
<%% flash.each do |type, message| -%>
|
7
|
+
<div class="message <%%= type %>">
|
8
|
+
<p><%%= message %></p>
|
9
|
+
</div>
|
10
|
+
<%% end -%>
|
11
|
+
</div>
|
12
|
+
<%% form_for :<%= resource_name %>, :url => <%= controller_routing_path %>_path, :html => { :class => 'form' } do |f| -%>
|
13
|
+
<div class="group wat-cf">
|
14
|
+
<div class="left">
|
15
|
+
<label class="label">Login</label>
|
16
|
+
</div>
|
17
|
+
<div class="right">
|
18
|
+
<%%= f.text_field :login, :class => 'text_field' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="group wat-cf">
|
22
|
+
<div class="left">
|
23
|
+
<label class="label">Email</label>
|
24
|
+
</div>
|
25
|
+
<div class="right">
|
26
|
+
<%%= f.text_field :email, :class => 'text_field' %>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<div class="group wat-cf">
|
30
|
+
<div class="left">
|
31
|
+
<label class="label">Password</label>
|
32
|
+
</div>
|
33
|
+
<div class="right">
|
34
|
+
<%%= f.password_field :password, :class => 'text_field' %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="group">
|
39
|
+
<div class="left wat-cf">
|
40
|
+
<label class="label">Password</label>
|
41
|
+
</div>
|
42
|
+
<div class="right">
|
43
|
+
<%%= f.password_field :password_confirmation, :class => 'text_field' %>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="group navform">
|
48
|
+
<input type="submit" class="button" value="Sign up" />
|
49
|
+
</div>
|
50
|
+
<%% end -%>
|
51
|
+
</div>
|
52
|
+
</div>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<div class="block">
|
2
|
+
<div class="secondary-navigation">
|
3
|
+
<ul class="wat-cf">
|
4
|
+
<li class="first active"><%%= link_to "#{t("web-app-theme.list", :default => "List")}", <%= controller_routing_path %>_path %></li>
|
5
|
+
<li><%%= link_to "#{t("web-app-theme.new", :default => "New")}", new_<%= singular_controller_routing_path %>_path %></li>
|
6
|
+
</ul>
|
7
|
+
</div>
|
8
|
+
<div class="content">
|
9
|
+
<h2 class="title"><%%= t("web-app-theme.all", :default => "All") %> <%= plural_model_name %></h2>
|
10
|
+
<div class="inner">
|
11
|
+
<table class="table">
|
12
|
+
<tr>
|
13
|
+
<th class="first">ID</th>
|
14
|
+
<% unless columns.empty? -%>
|
15
|
+
<th>
|
16
|
+
<%%= t("activerecord.attributes.<%= singular_controller_routing_path %>.<%= columns.first.name %>", :default => t("activerecord.labels.<%= columns.first.name %>", :default => "<%= columns.first.name.capitalize %>")) %>
|
17
|
+
</th>
|
18
|
+
<% end -%>
|
19
|
+
<th><%%= t("web-app-theme.created_at", :default => "Created at") %></th>
|
20
|
+
<th class="last"> </th>
|
21
|
+
</tr>
|
22
|
+
<%% @<%= plural_resource_name %>.each do |<%= resource_name %>| -%>
|
23
|
+
<tr class="<%%= cycle("odd", "even") %>">
|
24
|
+
<td>
|
25
|
+
<%%= <%= resource_name %>.id %>
|
26
|
+
</td>
|
27
|
+
<% unless columns.empty? -%>
|
28
|
+
<td>
|
29
|
+
<%%= link_to <%= resource_name %>.<%= columns.first.name %>, <%= singular_controller_routing_path %>_path(<%= resource_name %>) %>
|
30
|
+
</td>
|
31
|
+
<% end -%>
|
32
|
+
<td>
|
33
|
+
<%%= <%= resource_name %>.created_at %>
|
34
|
+
</td>
|
35
|
+
<td class="last">
|
36
|
+
<%%= link_to "#{t("web-app-theme.show", :default => "Show")}", <%= singular_controller_routing_path %>_path(<%= resource_name %>) %>
|
37
|
+
|
|
38
|
+
<%%= link_to "#{t("web-app-theme.edit", :default => "Edit")}", edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>) %>
|
39
|
+
|
|
40
|
+
<%%= link_to "#{t("web-app-theme.delete", :default => "Delete")}", <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :confirm => "#{t("web-app-theme.confirm", :default => "Are you sure?")}" %>
|
41
|
+
</td>
|
42
|
+
</tr>
|
43
|
+
<%% end -%>
|
44
|
+
</table>
|
45
|
+
<div class="actions-bar wat-cf">
|
46
|
+
<div class="actions">
|
47
|
+
</div>
|
48
|
+
<% if options.will_paginate %>
|
49
|
+
<%%= will_paginate @<%= plural_resource_name %> %>
|
50
|
+
<% end %>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<%% content_for :sidebar, render(:partial => 'sidebar') -%>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="block" id="block-text">
|
2
|
+
<div class="content">
|
3
|
+
<h2 class="title"><%= resource_name.capitalize %></h2>
|
4
|
+
<div class="inner">
|
5
|
+
<p class="first">
|
6
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span class="hightlight">Excepteur sint occaecat cupidatat non proident</span>, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
</p>
|
8
|
+
<p> <span class="small">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</span></p>
|
9
|
+
<p> <span class="gray">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</span></p>
|
10
|
+
<hr />
|
11
|
+
<p>
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <span class="hightlight">Excepteur sint occaecat cupidatat non proident</span>, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
13
|
+
</p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<%% content_for :sidebar, render(:partial => 'sidebar') -%>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Activoate
|
2
|
+
class InstallGenerator < Rails::Generators::Base
|
3
|
+
desc "Installs the activo layout"
|
4
|
+
source_root File.expand_path('../templates', __FILE__)
|
5
|
+
|
6
|
+
argument :layout_name, :type => :string, :default => 'activo'
|
7
|
+
|
8
|
+
class_option :theme, :type => :string, :default => :default, :desc => 'Specify the layout theme'
|
9
|
+
class_option :app_name, :type => :string, :default => 'Web App', :desc => 'Specify the application name'
|
10
|
+
class_option :engine, :type => :string, :default => 'erb', :desc => 'Specify the template engine'
|
11
|
+
class_option :layout_type, :type => :string, :default => 'admin', :desc => 'Layout type, admin or sign'
|
12
|
+
|
13
|
+
def copy_layout
|
14
|
+
return if options.no_layout
|
15
|
+
admin_layout_name = options.layout_type == 'sign' ? "layout_sign.html.erb" : "layout_admin.html.erb"
|
16
|
+
case options.engine
|
17
|
+
when 'erb'
|
18
|
+
template admin_layout_name, "app/views/layouts/#{layout_name.underscore}.html.erb"
|
19
|
+
when 'haml'
|
20
|
+
generate_haml_layout(admin_layout_name)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def generate_haml_layout(admin_layout_name)
|
27
|
+
require 'haml'
|
28
|
+
Dir.mktmpdir('activoate-haml') do |haml_root|
|
29
|
+
tmp_html_path = "#{haml_root}/#{admin_layout_name}"
|
30
|
+
tmp_haml_path = "#{haml_root}/#{admin_layout_name}.haml"
|
31
|
+
template admin_layout_name, tmp_html_path, :verbose => false
|
32
|
+
`html2haml --erb --xhtml #{tmp_html_path} #{tmp_haml_path}`
|
33
|
+
copy_file tmp_haml_path, "app/views/layouts/#{layout_name.underscore}.html.haml"
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
say "HAML is not installed, or it is not specified in your Gemfile."
|
37
|
+
exit
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= options.app_name %></title>
|
5
|
+
<%%= stylesheet_link_tag "activo-2" %>
|
6
|
+
<%%= javascript_include_tag "activo-2" %>
|
7
|
+
<%%= csrf_meta_tag %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div id="container">
|
11
|
+
<div id="header">
|
12
|
+
<a href="/" title="Web App">
|
13
|
+
<div class="logo"></div>
|
14
|
+
</a>
|
15
|
+
<div id="user-navigation">
|
16
|
+
<ul class="wat-cf">
|
17
|
+
<li><%%= link_to image_tag("activo-2/session/home.png", :alt => "Home", :title => "Home"), "#" %></li>
|
18
|
+
<li><%%= link_to image_tag("activo-2/session/account.png", :alt => "Profile", :title => "Profile"), "#" %></li>
|
19
|
+
<li><%%= link_to image_tag("activo-2/session/config.png", :alt => "Settings", :title => "Settings"), "#" %></li>
|
20
|
+
<li><%%= link_to image_tag("activo-2/session/logout.png", :alt => "Logout", :title => "Logout"), "#" %></li>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
<div id="main-navigation">
|
24
|
+
<ul class="wat-cf"></ul>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div id="wrapper" class="wat-cf">
|
28
|
+
<div class="flash">
|
29
|
+
<%% flash.each do |type, message| -%>
|
30
|
+
<div class="message <%%= type %>">
|
31
|
+
<p><%%= message %></p>
|
32
|
+
</div>
|
33
|
+
<%% end -%>
|
34
|
+
</div>
|
35
|
+
<div id="main">
|
36
|
+
<%%= yield %>
|
37
|
+
<div id="footer">
|
38
|
+
<div class="block">
|
39
|
+
<p>Copyright © <%%= Time.now.year %> <%= options.app_name %>.</p>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<div id="sidebar">
|
44
|
+
<%%= yield :sidebar %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= options.app_name %></title>
|
5
|
+
<%%= stylesheet_link_tag 'activo-2' %>
|
6
|
+
<%%= javascript_include_tag 'activo-2' %>
|
7
|
+
<%%= csrf_meta_tag %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div id="container">
|
11
|
+
<div id="header">
|
12
|
+
<a href="/" title="<%= options.app_name %>">
|
13
|
+
<div class="logo"></div>
|
14
|
+
</a>
|
15
|
+
<div id="user-navigation">
|
16
|
+
<ul class="wat-cf">
|
17
|
+
<li>
|
18
|
+
<%%= link_to image_tag('web-app-theme/session/home.png', :alt => 'Home', :title => 'Home'), '#' %>
|
19
|
+
</li>
|
20
|
+
<li>
|
21
|
+
<%%= link_to image_tag('web-app-theme/session/account.png', :alt => 'Profile', :title => 'Profile'), '#' %>
|
22
|
+
</li>
|
23
|
+
<li>
|
24
|
+
<%%= link_to image_tag('web-app-theme/session/config.png', :alt => 'Settings', :title => 'Settings'), '#' %>
|
25
|
+
</li>
|
26
|
+
<li>
|
27
|
+
<%%= link_to image_tag('web-app-theme/session/logout.png', :alt => 'Logout', :title => 'Logout'), '#' %>
|
28
|
+
</li>
|
29
|
+
</ul>
|
30
|
+
</div>
|
31
|
+
<div id="main-navigation">
|
32
|
+
<ul class="wat-cf"></ul>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div id="wrapper" class="wat-cf">
|
36
|
+
<div class="flash">
|
37
|
+
<%% flash.each do |type, message| -%>
|
38
|
+
<div class="message <%%= type %>">
|
39
|
+
<p><%%= message %></p>
|
40
|
+
</div>
|
41
|
+
<%% end -%>
|
42
|
+
</div>
|
43
|
+
<div id="main">
|
44
|
+
<%%= yield %>
|
45
|
+
<div id="footer">
|
46
|
+
<div class="block">
|
47
|
+
<p>Copyright © <%%= Time.now.year %> <%= options.app_name %>.</p>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<div id="sidebar">
|
52
|
+
<%%= yield :sidebar %>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</body>
|
57
|
+
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= options.app_name %></title>
|
5
|
+
<%%= stylesheet_link_tag "web_app_theme" %>
|
6
|
+
<%%= csrf_meta_tag %>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<div id="container">
|
10
|
+
<div id="box">
|
11
|
+
<%%= yield %>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</body>
|
15
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,197 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activoate
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.5
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alan Sikora
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-13 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70115313554920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70115313554920
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: attrtastic
|
27
|
+
requirement: &70115313554500 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70115313554500
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: formtastic
|
38
|
+
requirement: &70115313554040 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70115313554040
|
47
|
+
description: Helps to use Activo 2 theme on Rails 3 applications and provides handy
|
48
|
+
helpers and generators to use with formtastic/attrtastic
|
49
|
+
email:
|
50
|
+
- alan@wcd.co
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- Gemfile
|
57
|
+
- README
|
58
|
+
- Rakefile
|
59
|
+
- activoate.gemspec
|
60
|
+
- app/.DS_Store
|
61
|
+
- app/assets/.DS_Store
|
62
|
+
- app/assets/images/.DS_Store
|
63
|
+
- app/assets/images/activo-2/.DS_Store
|
64
|
+
- app/assets/images/activo-2/arrow.png
|
65
|
+
- app/assets/images/activo-2/avatar.png
|
66
|
+
- app/assets/images/activo-2/bgd.jpg
|
67
|
+
- app/assets/images/activo-2/boxbar-background.png
|
68
|
+
- app/assets/images/activo-2/breadcrumb.png
|
69
|
+
- app/assets/images/activo-2/button-background-active.png
|
70
|
+
- app/assets/images/activo-2/button-background.png
|
71
|
+
- app/assets/images/activo-2/icons/24/about-this-folder.txt
|
72
|
+
- app/assets/images/activo-2/icons/24/anchor-hover.png
|
73
|
+
- app/assets/images/activo-2/icons/24/anchor.png
|
74
|
+
- app/assets/images/activo-2/icons/24/cross-hover.png
|
75
|
+
- app/assets/images/activo-2/icons/24/cross.png
|
76
|
+
- app/assets/images/activo-2/icons/24/download-hover.png
|
77
|
+
- app/assets/images/activo-2/icons/24/download.png
|
78
|
+
- app/assets/images/activo-2/icons/24/edit-hover.png
|
79
|
+
- app/assets/images/activo-2/icons/24/edit.png
|
80
|
+
- app/assets/images/activo-2/icons/24/export-hover.png
|
81
|
+
- app/assets/images/activo-2/icons/24/export.png
|
82
|
+
- app/assets/images/activo-2/icons/24/show-hover.png
|
83
|
+
- app/assets/images/activo-2/icons/24/show.png
|
84
|
+
- app/assets/images/activo-2/icons/about-this-folder.txt
|
85
|
+
- app/assets/images/activo-2/icons/add.png
|
86
|
+
- app/assets/images/activo-2/icons/application_edit.png
|
87
|
+
- app/assets/images/activo-2/icons/calendar-hover.png
|
88
|
+
- app/assets/images/activo-2/icons/calendar.png
|
89
|
+
- app/assets/images/activo-2/icons/cross.png
|
90
|
+
- app/assets/images/activo-2/icons/delete.png
|
91
|
+
- app/assets/images/activo-2/icons/download.png
|
92
|
+
- app/assets/images/activo-2/icons/edit.png
|
93
|
+
- app/assets/images/activo-2/icons/key.png
|
94
|
+
- app/assets/images/activo-2/icons/pdf.png
|
95
|
+
- app/assets/images/activo-2/icons/search.png
|
96
|
+
- app/assets/images/activo-2/icons/see-less.png
|
97
|
+
- app/assets/images/activo-2/icons/see-more.png
|
98
|
+
- app/assets/images/activo-2/icons/send-mail.png
|
99
|
+
- app/assets/images/activo-2/icons/show.png
|
100
|
+
- app/assets/images/activo-2/icons/tick.png
|
101
|
+
- app/assets/images/activo-2/icons/upload.png
|
102
|
+
- app/assets/images/activo-2/logo.png
|
103
|
+
- app/assets/images/activo-2/messages/error.png
|
104
|
+
- app/assets/images/activo-2/messages/notice.png
|
105
|
+
- app/assets/images/activo-2/messages/warning.png
|
106
|
+
- app/assets/images/activo-2/search-button.png
|
107
|
+
- app/assets/images/activo-2/session/about-this-folder.txt
|
108
|
+
- app/assets/images/activo-2/session/account.png
|
109
|
+
- app/assets/images/activo-2/session/config.png
|
110
|
+
- app/assets/images/activo-2/session/home.png
|
111
|
+
- app/assets/images/activo-2/session/logout.png
|
112
|
+
- app/assets/images/activo-2/tipsy/tipsy.gif
|
113
|
+
- app/assets/images/activo-2/uniform/bg-input-focus.png
|
114
|
+
- app/assets/images/activo-2/uniform/bg-input.png
|
115
|
+
- app/assets/images/activo-2/uniform/sprite.png
|
116
|
+
- app/assets/javascripts/.DS_Store
|
117
|
+
- app/assets/javascripts/activo-2.js
|
118
|
+
- app/assets/javascripts/activo-2/activo-2.js
|
119
|
+
- app/assets/javascripts/activo-2/jquery.localscroll.js
|
120
|
+
- app/assets/javascripts/activo-2/jquery.scrollTo.js
|
121
|
+
- app/assets/javascripts/activo-2/jquery.tipsy.js
|
122
|
+
- app/assets/javascripts/activo-2/jquery.uniform.min.js
|
123
|
+
- app/assets/javascripts/users.js.coffee
|
124
|
+
- app/assets/stylesheets/.DS_Store
|
125
|
+
- app/assets/stylesheets/activo-2.css
|
126
|
+
- app/assets/stylesheets/activo-2/.DS_Store
|
127
|
+
- app/assets/stylesheets/activo-2/attrtastic_changes.sass
|
128
|
+
- app/assets/stylesheets/activo-2/base.css
|
129
|
+
- app/assets/stylesheets/activo-2/fonts.sass
|
130
|
+
- app/assets/stylesheets/activo-2/fonts/.DS_Store
|
131
|
+
- app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.eot
|
132
|
+
- app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.svg
|
133
|
+
- app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.ttf
|
134
|
+
- app/assets/stylesheets/activo-2/fonts/museo700-regular-webfont.woff
|
135
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.eot
|
136
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.svg
|
137
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.ttf
|
138
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500-webfont.woff
|
139
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.eot
|
140
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.svg
|
141
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.ttf
|
142
|
+
- app/assets/stylesheets/activo-2/fonts/museosans_500_italic-webfont.woff
|
143
|
+
- app/assets/stylesheets/activo-2/formtastic_changes.sass
|
144
|
+
- app/assets/stylesheets/activo-2/libs/jquery.tipsy.css
|
145
|
+
- app/assets/stylesheets/activo-2/libs/uniform.default.css
|
146
|
+
- app/assets/stylesheets/activo-2/mixins.sass
|
147
|
+
- app/assets/stylesheets/activo-2/style.sass
|
148
|
+
- app/assets/stylesheets/application.css
|
149
|
+
- app/assets/stylesheets/scaffolds.css.scss
|
150
|
+
- app/assets/stylesheets/users.css.scss
|
151
|
+
- app/helpers/activo_helper.rb
|
152
|
+
- config.ru
|
153
|
+
- lib/activoate.rb
|
154
|
+
- lib/activoate/engine.rb
|
155
|
+
- lib/activoate/version.rb
|
156
|
+
- lib/generators/activoate/activated/activated_generator.rb
|
157
|
+
- lib/generators/activoate/activated/templates/view_edit.html.erb
|
158
|
+
- lib/generators/activoate/activated/templates/view_form.html.erb
|
159
|
+
- lib/generators/activoate/activated/templates/view_form_formtastic.html.erb
|
160
|
+
- lib/generators/activoate/activated/templates/view_new.html.erb
|
161
|
+
- lib/generators/activoate/activated/templates/view_show.html.erb
|
162
|
+
- lib/generators/activoate/activated/templates/view_show_attrtastic.html.erb
|
163
|
+
- lib/generators/activoate/activated/templates/view_sidebar.html.erb
|
164
|
+
- lib/generators/activoate/activated/templates/view_signin.html.erb
|
165
|
+
- lib/generators/activoate/activated/templates/view_signup.html.erb
|
166
|
+
- lib/generators/activoate/activated/templates/view_tables.html.erb
|
167
|
+
- lib/generators/activoate/activated/templates/view_text.html.erb
|
168
|
+
- lib/generators/activoate/install/install_generator.rb
|
169
|
+
- lib/generators/activoate/install/templates/layout_admin.html.erb
|
170
|
+
- lib/templates/web_app_theme/theme/layout_admin.html.erb
|
171
|
+
- lib/templates/web_app_theme/theme/layout_sign.html.erb
|
172
|
+
- lib/templates/web_app_theme/theme/web_app_theme.css.erb
|
173
|
+
homepage: https://github.com/wcdcompany/activoate
|
174
|
+
licenses: []
|
175
|
+
post_install_message:
|
176
|
+
rdoc_options: []
|
177
|
+
require_paths:
|
178
|
+
- lib
|
179
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
180
|
+
none: false
|
181
|
+
requirements:
|
182
|
+
- - ! '>='
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ! '>='
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
requirements: []
|
192
|
+
rubyforge_project: activoate
|
193
|
+
rubygems_version: 1.8.6
|
194
|
+
signing_key:
|
195
|
+
specification_version: 3
|
196
|
+
summary: Helps to use Activo 2 theme on Rails 3 applications.
|
197
|
+
test_files: []
|