spud_admin 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +39 -0
- data/app/assets/images/back_disabled.jpg +0 -0
- data/app/assets/images/back_enabled.jpg +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/forward_disabled.jpg +0 -0
- data/app/assets/images/forward_enabled.jpg +0 -0
- data/app/assets/images/sort_asc.png +0 -0
- data/app/assets/images/sort_asc_disabled.png +0 -0
- data/app/assets/images/sort_both.png +0 -0
- data/app/assets/images/sort_desc.png +0 -0
- data/app/assets/images/sort_desc_disabled.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-icons_0073ea_256x240.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-icons_666666_256x240.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-icons_ff0084_256x240.png +0 -0
- data/app/assets/images/spud/admin/flick/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/images/spud/admin/users_thumb.png +0 -0
- data/app/assets/javascripts/spud/admin/application.js +73 -0
- data/app/assets/javascripts/spud/admin/jquery.dataTables.min.js +151 -0
- data/app/assets/javascripts/spud/admin/settings.js +2 -0
- data/app/assets/javascripts/spud/admin/users.js +2 -0
- data/app/assets/javascripts/spud/setup.js +2 -0
- data/app/assets/javascripts/spud/user_sessions.js +2 -0
- data/app/assets/javascripts/spud/users.js +2 -0
- data/app/assets/stylesheets/spud/admin/application.css +432 -0
- data/app/assets/stylesheets/spud/admin/jquery-ui.css +568 -0
- data/app/assets/stylesheets/spud/admin/settings.css +4 -0
- data/app/assets/stylesheets/spud/admin/users.css +4 -0
- data/app/assets/stylesheets/spud/forms.css +108 -0
- data/app/assets/stylesheets/spud/login.css +58 -0
- data/app/assets/stylesheets/spud/login/application.css +302 -0
- data/app/assets/stylesheets/spud/setup.css +4 -0
- data/app/assets/stylesheets/spud/user_sessions.css +4 -0
- data/app/assets/stylesheets/spud/users.css +4 -0
- data/app/controllers/spud/admin/application_controller.rb +17 -0
- data/app/controllers/spud/admin/dashboard_controller.rb +6 -0
- data/app/controllers/spud/admin/settings_controller.rb +15 -0
- data/app/controllers/spud/admin/users_controller.rb +109 -0
- data/app/controllers/spud/application_controller.rb +44 -0
- data/app/controllers/spud/setup_controller.rb +21 -0
- data/app/controllers/spud/user_sessions_controller.rb +28 -0
- data/app/controllers/spud/users_controller.rb +21 -0
- data/app/helpers/spud/admin/application_helper.rb +17 -0
- data/app/helpers/spud/admin/settings_helper.rb +2 -0
- data/app/helpers/spud/admin/users_helper.rb +2 -0
- data/app/helpers/spud/setup_helper.rb +2 -0
- data/app/helpers/spud/user_sessions_helper.rb +2 -0
- data/app/helpers/spud/users_helper.rb +2 -0
- data/app/models/spud_admin_permission.rb +2 -0
- data/app/models/spud_setting.rb +2 -0
- data/app/models/spud_user.rb +14 -0
- data/app/models/spud_user_session.rb +3 -0
- data/app/views/layouts/spud/admin/application.html.erb +44 -0
- data/app/views/layouts/spud/admin/detail.html.erb +31 -0
- data/app/views/layouts/spud/login/application.html.erb +17 -0
- data/app/views/layouts/spud/setup.html.erb +47 -0
- data/app/views/spud/admin/dashboard/index.html.erb +11 -0
- data/app/views/spud/admin/users/_edit.html.erb +14 -0
- data/app/views/spud/admin/users/_form.html.erb +38 -0
- data/app/views/spud/admin/users/_new.html.erb +14 -0
- data/app/views/spud/admin/users/index.html.erb +41 -0
- data/app/views/spud/admin/users/show.html.erb +17 -0
- data/app/views/spud/setup/index.html.erb +25 -0
- data/app/views/spud/user_sessions/new.html.erb +22 -0
- data/app/views/spud/users/_form.html.erb +35 -0
- data/app/views/spud/users/settings.html.erb +14 -0
- data/config/application.rb +48 -0
- data/config/boot.rb +6 -0
- data/config/routes.rb +15 -0
- data/lib/spud_admin.rb +7 -0
- data/lib/spud_admin/configuration.rb +12 -0
- data/lib/spud_admin/engine.rb +45 -0
- metadata +180 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Spud Admin</title>
|
5
|
+
<%= stylesheet_link_tag "spud/admin/application" %>
|
6
|
+
<%= javascript_include_tag "spud/admin/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
<%=content_for :head%>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="header">
|
12
|
+
<h1>Spud First Time Setup</h1>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
<div id="breadcrumbs">
|
16
|
+
<%= render_breadcrumbs :separator => ' / ' %>
|
17
|
+
</div>
|
18
|
+
<div id="content">
|
19
|
+
<div id="detail_wrapper">
|
20
|
+
<h2>
|
21
|
+
<%if @page_thumbnail%>
|
22
|
+
<span class="thumb_wrapper"><%=image_tag(@page_thumbnail)%></span>
|
23
|
+
<%end%>
|
24
|
+
<%=@page_name%>
|
25
|
+
</h2>
|
26
|
+
|
27
|
+
<div id="details">
|
28
|
+
<%if content_for?(:detail_nav)%>
|
29
|
+
<div id="detail_nav_wrapper">
|
30
|
+
<div id="detail_nav">
|
31
|
+
<%= yield(:detail_nav)%></div>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
<div id="detail_main_wrapper">
|
35
|
+
<div id="detail_main">
|
36
|
+
<%= content_for?(:detail) ? yield(:detail) : yield %></div>
|
37
|
+
</div>
|
38
|
+
<br style="clear:both;"/>
|
39
|
+
<%else%>
|
40
|
+
<%= content_for?(:detail) ? yield(:detail) : yield %>
|
41
|
+
<%end%>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
</body>
|
47
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<%@admin_applications.sort_by{|obj| obj[:order]}.each do |admin_application|%>
|
4
|
+
|
5
|
+
<div class="admin_application"><a href="<%=admin_application[:url]%>">
|
6
|
+
<div class="image_wrapper"><%=image_tag(admin_application[:thumbnail])%></div>
|
7
|
+
<span class="application_name"><%=admin_application[:name]%></span>
|
8
|
+
</a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<%end%>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<p> Fill in all information pertaining to the current user you wish to modify. Fields marked with * are required and must be filled out.</p>
|
4
|
+
|
5
|
+
<%=form_for @user,:url => spud_admin_user_path(:id => @user.id),:html=>{:class=>"right_aligned_form"} do |f|%>
|
6
|
+
<%=render :partial => "form",:locals => {:f => f}%>
|
7
|
+
<fieldset class="submit"><%=f.submit%> or <%=link_to "cancel","#",:class => "close_dialog"%></fieldset>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<script type="text/javascript">
|
11
|
+
$('input[type=submit],.close_dialog').button();
|
12
|
+
|
13
|
+
</script>
|
14
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<fieldset>
|
2
|
+
<legend>User Details</legend>
|
3
|
+
<ol>
|
4
|
+
<li><%=f.label :login, :required=>true%>
|
5
|
+
<%=f.text_field :login,:title => "",:size=>25%>
|
6
|
+
<%=error_message_on "user","login"%>
|
7
|
+
</li>
|
8
|
+
<li><%=f.label :email%>
|
9
|
+
<%=f.text_field :email, :title => "",:size => 25%>
|
10
|
+
<%=error_message_on "user","email"%>
|
11
|
+
</li>
|
12
|
+
<li><%=f.label :first_name%>
|
13
|
+
<%=f.text_field :first_name, :title => "",:size => 25%>
|
14
|
+
<%=error_message_on "user","first_name"%>
|
15
|
+
</li>
|
16
|
+
<li><%=f.label :last_name%>
|
17
|
+
<%=f.text_field :last_name, :title => "",:size => 25%>
|
18
|
+
<%=error_message_on "user","last_name"%>
|
19
|
+
</li>
|
20
|
+
|
21
|
+
</ol>
|
22
|
+
</fieldset>
|
23
|
+
<fieldset>
|
24
|
+
<legend>Credentials</legend>
|
25
|
+
<ol>
|
26
|
+
<li><%=f.label :password%>
|
27
|
+
<%=f.password_field :password, :title => "",:size => 25%>
|
28
|
+
<%=error_message_on "user","password"%>
|
29
|
+
</li>
|
30
|
+
<li><%=f.label :password_confirmation,"Confirm"%>
|
31
|
+
<%=f.password_field :password_confirmation, :title => "",:size => 25%>
|
32
|
+
<%=error_message_on "user","password_confirmation"%>
|
33
|
+
</li>
|
34
|
+
<li><%=f.label :super_admin,"Super Admin"%>
|
35
|
+
<%=f.check_box :super_admin, :title => ""%>
|
36
|
+
</li>
|
37
|
+
</ol>
|
38
|
+
</fieldset>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<p> Fill in all information pertaining to the new user you wish to create. Fields marked with * are required and must be filled out.</p>
|
4
|
+
|
5
|
+
<%=form_for @user,:url => spud_admin_users_path(),:html=>{:class=>"right_aligned_form"} do |f|%>
|
6
|
+
<%=render :partial => "form",:locals => {:f => f}%>
|
7
|
+
<fieldset class="submit"><%=f.submit%> or <%=link_to "cancel","#",:class => "close_dialog"%></fieldset>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<script type="text/javascript">
|
11
|
+
$('input[type=submit],.close_dialog').button();
|
12
|
+
|
13
|
+
</script>
|
14
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%=content_for :data_controls do%>
|
2
|
+
<%=link_to "New User",new_spud_admin_user_path(),:class => "ajax button",:title => "New User"%>
|
3
|
+
<%end%>
|
4
|
+
<%=content_for :detail do%>
|
5
|
+
<table class="admin-table data-table" id="usertable">
|
6
|
+
<thead>
|
7
|
+
<tr>
|
8
|
+
|
9
|
+
<th>Login</th>
|
10
|
+
<th>Email</th>
|
11
|
+
<th>Name</th>
|
12
|
+
|
13
|
+
<th>Last Login</th>
|
14
|
+
<th>Date Created</th>
|
15
|
+
<th></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<%@users.each do |user|%>
|
20
|
+
<tr id="row_user_<%=user.id%>">
|
21
|
+
|
22
|
+
<td><%=link_to user.login,spud_admin_user_path(:id => user.id)%></td>
|
23
|
+
<td><%=user.email%></td>
|
24
|
+
<td><%=user.first_name%> <%=user.last_name%></td>
|
25
|
+
|
26
|
+
<td><%=timestamp user.last_login_at%></td>
|
27
|
+
<td><%=timestamp user.created_at%></td>
|
28
|
+
<td align="right"><%=link_to "Edit",edit_spud_admin_user_path(:id => user.id),:class => "ajax", :title => "Edit User"%> | <%=link_to "Remove",spud_admin_user_path(:id => user.id),:method => :delete,:remote => true,:confirm => "Are you sure you want to remove this user?"%></td>
|
29
|
+
</tr>
|
30
|
+
<%end%>
|
31
|
+
</tbody>
|
32
|
+
<tfoot>
|
33
|
+
<tr>
|
34
|
+
<td colspan="6">
|
35
|
+
<%=will_paginate @users%>
|
36
|
+
</td>
|
37
|
+
</tr>
|
38
|
+
</tfoot>
|
39
|
+
</table>
|
40
|
+
|
41
|
+
<%end%>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%=content_for :data_controls do%>
|
2
|
+
<%=link_to "Edit",edit_spud_admin_user_path(:id => @user.id),:class => "ajax",:title => "Edit User"%> | <%=link_to "Remove",spud_admin_user_path(:id => @user.id),:method => :delete,:title => "Remove User",:confirm => "Are you sure you wish to remove this user?"%>
|
3
|
+
<%end%>
|
4
|
+
<%=content_for :detail_nav do%>
|
5
|
+
<ul class="detail_nav">
|
6
|
+
<li><%=link_to "Permissions","#"%></li>
|
7
|
+
</ul>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<%=content_for :detail do%>
|
11
|
+
<div class="info_card">
|
12
|
+
<p><strong>Login:</strong> <%=@user.login%> <%="(Super Administrator)" if @user.super_admin%></p>
|
13
|
+
<p><strong>Email:</strong> <%=link_to @user.email, "mailto:#{@user.email}"%></p>
|
14
|
+
<p><strong>Last Login:</strong> <span title="IP: <%=@user.last_login_ip%>"><%=timestamp @user.last_login_at%></span></p>
|
15
|
+
<p><strong>Created:</strong> <%=timestamp @user.created_at%></p>
|
16
|
+
</div>
|
17
|
+
<%end%>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%content_for :detail do%>
|
2
|
+
<%=form_tag "/spud/setup",:method => :post,:class=>"right_aligned_form" do %>
|
3
|
+
<fieldset>
|
4
|
+
<legend>New Admin Account</legend>
|
5
|
+
<ol>
|
6
|
+
<li><%=label_tag "Login"%>
|
7
|
+
<%=text_field_tag :login,nil,:title => "",:size=>25%>
|
8
|
+
</li>
|
9
|
+
<li><%=label_tag "Email"%>
|
10
|
+
<%=text_field_tag :email,nil,:title => "",:size=>25%>
|
11
|
+
</li>
|
12
|
+
<li><%=label_tag "Password"%>
|
13
|
+
<%=password_field_tag :password,nil,:title => "",:size=>25%>
|
14
|
+
</li>
|
15
|
+
<li><%=label_tag "Confirm"%>
|
16
|
+
<%=password_field_tag :password_confirmation,nil,:title => "",:size=>25%>
|
17
|
+
</li>
|
18
|
+
|
19
|
+
|
20
|
+
</ol>
|
21
|
+
</fieldset>
|
22
|
+
<fieldset class="submit"><%=submit_tag "Create Admin Account"%></fieldset>
|
23
|
+
<%end%>
|
24
|
+
<br/>
|
25
|
+
<%end%>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<div class="login-form">
|
2
|
+
<h1>Spud CMS Admin</h1>
|
3
|
+
<%= form_for @user_session, url: spud_user_session_path do |f| %>
|
4
|
+
<div>
|
5
|
+
<%= f.error_messages %>
|
6
|
+
</div>
|
7
|
+
<div class="field-group">
|
8
|
+
<%= f.label :login %>
|
9
|
+
<%= f.text_field :login %>
|
10
|
+
</div>
|
11
|
+
<div class="field-group">
|
12
|
+
<%= f.label :password %>
|
13
|
+
<%= f.password_field :password %>
|
14
|
+
</div>
|
15
|
+
<div class="field-group">
|
16
|
+
<%= f.check_box :remember_me %> <%= f.label :remember_me, class: 'inline' %>
|
17
|
+
</div>
|
18
|
+
<div class="field-group">
|
19
|
+
<%= f.submit "Login" %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<fieldset>
|
2
|
+
<legend>User Details</legend>
|
3
|
+
<ol>
|
4
|
+
<li><%=f.label :login, :required=>true%>
|
5
|
+
<%=f.text_field :login,:title => "",:size=>25%>
|
6
|
+
<%=error_message_on "user","login"%>
|
7
|
+
</li>
|
8
|
+
<li><%=f.label :email%>
|
9
|
+
<%=f.text_field :email, :title => "",:size => 25%>
|
10
|
+
<%=error_message_on "user","email"%>
|
11
|
+
</li>
|
12
|
+
<li><%=f.label :first_name%>
|
13
|
+
<%=f.text_field :first_name, :title => "",:size => 25%>
|
14
|
+
<%=error_message_on "user","first_name"%>
|
15
|
+
</li>
|
16
|
+
<li><%=f.label :last_name%>
|
17
|
+
<%=f.text_field :last_name, :title => "",:size => 25%>
|
18
|
+
<%=error_message_on "user","last_name"%>
|
19
|
+
</li>
|
20
|
+
|
21
|
+
</ol>
|
22
|
+
</fieldset>
|
23
|
+
<fieldset>
|
24
|
+
<legend>Credentials</legend>
|
25
|
+
<ol>
|
26
|
+
<li><%=f.label :password%>
|
27
|
+
<%=f.password_field :password, :title => "",:size => 25%>
|
28
|
+
<%=error_message_on "user","password"%>
|
29
|
+
</li>
|
30
|
+
<li><%=f.label :password_confirmation,"Confirm"%>
|
31
|
+
<%=f.password_field :password_confirmation, :title => "",:size => 25%>
|
32
|
+
<%=error_message_on "user","password_confirmation"%>
|
33
|
+
</li>
|
34
|
+
</ol>
|
35
|
+
</fieldset>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<p>Fields marked with * are required and must be filled out.</p>
|
4
|
+
|
5
|
+
<%=form_for @current_user,:url => spud_user_path(),:html=>{:class=>"right_aligned_form"} do |f|%>
|
6
|
+
<%=render :partial => "form",:locals => {:f => f}%>
|
7
|
+
<fieldset class="submit"><%=f.submit "Save Settings"%> or <%=link_to "cancel",request.referer,:class => "close_dialog"%></fieldset>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<script type="text/javascript">
|
11
|
+
$('input[type=submit],.close_dialog').button();
|
12
|
+
|
13
|
+
</script>
|
14
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
if defined?(Bundler)
|
6
|
+
# If you precompile assets before deploying to production, use this line
|
7
|
+
Bundler.require *Rails.groups(:assets => %w(development test))
|
8
|
+
# If you want your assets lazily compiled in production, use this line
|
9
|
+
# Bundler.require(:default, :assets, Rails.env)
|
10
|
+
end
|
11
|
+
|
12
|
+
module SpudTest
|
13
|
+
class Application < Rails::Application
|
14
|
+
# Settings in config/environments/* take precedence over those specified here.
|
15
|
+
# Application configuration should go into files in config/initializers
|
16
|
+
# -- all .rb files in that directory are automatically loaded.
|
17
|
+
|
18
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
+
|
21
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
+
|
25
|
+
# Activate observers that should always be running.
|
26
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
+
|
28
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
+
|
32
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
+
# config.i18n.default_locale = :de
|
35
|
+
|
36
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
+
config.encoding = "utf-8"
|
38
|
+
|
39
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
+
config.filter_parameters += [:password]
|
41
|
+
|
42
|
+
# Enable the asset pipeline
|
43
|
+
config.assets.enabled = true
|
44
|
+
|
45
|
+
# Version of your assets, change this if you want to expire all your assets
|
46
|
+
config.assets.version = '1.0'
|
47
|
+
end
|
48
|
+
end
|
data/config/boot.rb
ADDED
data/config/routes.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
namespace :spud do
|
3
|
+
resource :user_session
|
4
|
+
resource :user
|
5
|
+
match 'settings' => "users#settings"
|
6
|
+
namespace :admin do
|
7
|
+
root :to => "dashboard#index"
|
8
|
+
resources :users
|
9
|
+
end
|
10
|
+
|
11
|
+
match 'setup' => 'setup#index'
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
data/lib/spud_admin.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
module Spud
|
2
|
+
module Core
|
3
|
+
include ActiveSupport::Configurable
|
4
|
+
|
5
|
+
config_accessor :site_name,:admin_applications,:s3_credentials,:paperclip_storage
|
6
|
+
|
7
|
+
self.admin_applications = [{:name => "Users",:thumbnail => "spud/admin/users_thumb.png",:url => "/spud/admin/users",:order => 100}]
|
8
|
+
self.paperclip_storage = :filesystem
|
9
|
+
self.s3_credentials = "#{Rails.root}/config/s3.yml"
|
10
|
+
self.site_name = "Company Name"
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spud_admin'
|
2
|
+
require 'rails'
|
3
|
+
require 'action_controller'
|
4
|
+
require 'rubygems'
|
5
|
+
require 'jquery-rails'
|
6
|
+
require 'authlogic'
|
7
|
+
require 'dynamic_form'
|
8
|
+
require 'breadcrumbs_on_rails'
|
9
|
+
require 'will_paginate'
|
10
|
+
module Spud
|
11
|
+
module Core
|
12
|
+
class Engine < Rails::Engine
|
13
|
+
engine_name :spud_core
|
14
|
+
@@AdminApplications = []
|
15
|
+
@@paperclip_storage = :filesystem
|
16
|
+
@@s3_credentials = "#{Rails.root}/config/s3.yml"
|
17
|
+
def self.add_admin_application(options)
|
18
|
+
#Application Model
|
19
|
+
#Name
|
20
|
+
#thumbnail
|
21
|
+
#description optional
|
22
|
+
#notify_ajax
|
23
|
+
@@AdminApplications.push(options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.paperclip_storage
|
27
|
+
return @@paperclip_storage
|
28
|
+
end
|
29
|
+
def self.paperclip_storage=(storage)
|
30
|
+
@@paperclip_storage = storage
|
31
|
+
end
|
32
|
+
def self.s3_credentials
|
33
|
+
return @@s3_credentials
|
34
|
+
end
|
35
|
+
def self.s3_credentials=(creds)
|
36
|
+
@@s3_credentials=creds
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
def self.admin_applications
|
41
|
+
return @@AdminApplications
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spud_admin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- David Estes
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: authlogic
|
16
|
+
requirement: &70210178631720 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70210178631720
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jquery-rails
|
27
|
+
requirement: &70210178629380 !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: *70210178629380
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: dynamic_form
|
38
|
+
requirement: &70210178627400 !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: *70210178627400
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: breadcrumbs_on_rails
|
49
|
+
requirement: &70210178625140 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70210178625140
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: will_paginate
|
60
|
+
requirement: &70210178642620 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70210178642620
|
69
|
+
description:
|
70
|
+
email: destes@redwindsw.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files:
|
74
|
+
- README.markdown
|
75
|
+
files:
|
76
|
+
- app/assets/images/back_disabled.jpg
|
77
|
+
- app/assets/images/back_enabled.jpg
|
78
|
+
- app/assets/images/favicon.ico
|
79
|
+
- app/assets/images/forward_disabled.jpg
|
80
|
+
- app/assets/images/forward_enabled.jpg
|
81
|
+
- app/assets/images/sort_asc.png
|
82
|
+
- app/assets/images/sort_asc_disabled.png
|
83
|
+
- app/assets/images/sort_both.png
|
84
|
+
- app/assets/images/sort_desc.png
|
85
|
+
- app/assets/images/sort_desc_disabled.png
|
86
|
+
- app/assets/images/spud/admin/flick/ui-bg_flat_0_aaaaaa_40x100.png
|
87
|
+
- app/assets/images/spud/admin/flick/ui-bg_flat_0_eeeeee_40x100.png
|
88
|
+
- app/assets/images/spud/admin/flick/ui-bg_flat_55_ffffff_40x100.png
|
89
|
+
- app/assets/images/spud/admin/flick/ui-bg_flat_75_ffffff_40x100.png
|
90
|
+
- app/assets/images/spud/admin/flick/ui-bg_glass_65_ffffff_1x400.png
|
91
|
+
- app/assets/images/spud/admin/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png
|
92
|
+
- app/assets/images/spud/admin/flick/ui-bg_highlight-soft_25_0073ea_1x100.png
|
93
|
+
- app/assets/images/spud/admin/flick/ui-bg_highlight-soft_50_dddddd_1x100.png
|
94
|
+
- app/assets/images/spud/admin/flick/ui-icons_0073ea_256x240.png
|
95
|
+
- app/assets/images/spud/admin/flick/ui-icons_454545_256x240.png
|
96
|
+
- app/assets/images/spud/admin/flick/ui-icons_666666_256x240.png
|
97
|
+
- app/assets/images/spud/admin/flick/ui-icons_ff0084_256x240.png
|
98
|
+
- app/assets/images/spud/admin/flick/ui-icons_ffffff_256x240.png
|
99
|
+
- app/assets/images/spud/admin/users_thumb.png
|
100
|
+
- app/assets/javascripts/spud/admin/application.js
|
101
|
+
- app/assets/javascripts/spud/admin/jquery.dataTables.min.js
|
102
|
+
- app/assets/javascripts/spud/admin/settings.js
|
103
|
+
- app/assets/javascripts/spud/admin/users.js
|
104
|
+
- app/assets/javascripts/spud/setup.js
|
105
|
+
- app/assets/javascripts/spud/user_sessions.js
|
106
|
+
- app/assets/javascripts/spud/users.js
|
107
|
+
- app/assets/stylesheets/spud/admin/application.css
|
108
|
+
- app/assets/stylesheets/spud/admin/jquery-ui.css
|
109
|
+
- app/assets/stylesheets/spud/admin/settings.css
|
110
|
+
- app/assets/stylesheets/spud/admin/users.css
|
111
|
+
- app/assets/stylesheets/spud/forms.css
|
112
|
+
- app/assets/stylesheets/spud/login.css
|
113
|
+
- app/assets/stylesheets/spud/login/application.css
|
114
|
+
- app/assets/stylesheets/spud/setup.css
|
115
|
+
- app/assets/stylesheets/spud/user_sessions.css
|
116
|
+
- app/assets/stylesheets/spud/users.css
|
117
|
+
- app/controllers/spud/admin/application_controller.rb
|
118
|
+
- app/controllers/spud/admin/dashboard_controller.rb
|
119
|
+
- app/controllers/spud/admin/settings_controller.rb
|
120
|
+
- app/controllers/spud/admin/users_controller.rb
|
121
|
+
- app/controllers/spud/application_controller.rb
|
122
|
+
- app/controllers/spud/setup_controller.rb
|
123
|
+
- app/controllers/spud/user_sessions_controller.rb
|
124
|
+
- app/controllers/spud/users_controller.rb
|
125
|
+
- app/helpers/spud/admin/application_helper.rb
|
126
|
+
- app/helpers/spud/admin/settings_helper.rb
|
127
|
+
- app/helpers/spud/admin/users_helper.rb
|
128
|
+
- app/helpers/spud/setup_helper.rb
|
129
|
+
- app/helpers/spud/user_sessions_helper.rb
|
130
|
+
- app/helpers/spud/users_helper.rb
|
131
|
+
- app/models/spud_admin_permission.rb
|
132
|
+
- app/models/spud_setting.rb
|
133
|
+
- app/models/spud_user.rb
|
134
|
+
- app/models/spud_user_session.rb
|
135
|
+
- app/views/layouts/spud/admin/application.html.erb
|
136
|
+
- app/views/layouts/spud/admin/detail.html.erb
|
137
|
+
- app/views/layouts/spud/login/application.html.erb
|
138
|
+
- app/views/layouts/spud/setup.html.erb
|
139
|
+
- app/views/spud/admin/dashboard/index.html.erb
|
140
|
+
- app/views/spud/admin/users/_edit.html.erb
|
141
|
+
- app/views/spud/admin/users/_form.html.erb
|
142
|
+
- app/views/spud/admin/users/_new.html.erb
|
143
|
+
- app/views/spud/admin/users/index.html.erb
|
144
|
+
- app/views/spud/admin/users/show.html.erb
|
145
|
+
- app/views/spud/setup/index.html.erb
|
146
|
+
- app/views/spud/user_sessions/new.html.erb
|
147
|
+
- app/views/spud/users/_form.html.erb
|
148
|
+
- app/views/spud/users/settings.html.erb
|
149
|
+
- config/application.rb
|
150
|
+
- config/boot.rb
|
151
|
+
- config/routes.rb
|
152
|
+
- lib/spud_admin.rb
|
153
|
+
- lib/spud_admin/configuration.rb
|
154
|
+
- lib/spud_admin/engine.rb
|
155
|
+
- README.markdown
|
156
|
+
homepage: http://github.com/davydotcom/spud_core_admin
|
157
|
+
licenses: []
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options: []
|
160
|
+
require_paths:
|
161
|
+
- lib
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
none: false
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 1.8.10
|
177
|
+
signing_key:
|
178
|
+
specification_version: 3
|
179
|
+
summary: Spud Admin Panel Engine
|
180
|
+
test_files: []
|