grandstand 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.markdown +43 -0
- data/README.txt +0 -0
- data/Rakefile +7 -1
- data/VERSION +1 -1
- data/app/controllers/galleries_controller.rb +2 -2
- data/app/controllers/{admin → grandstand}/galleries_controller.rb +9 -13
- data/app/controllers/{admin → grandstand}/images_controller.rb +6 -9
- data/app/controllers/{admin → grandstand}/main_controller.rb +8 -8
- data/app/controllers/{admin → grandstand}/pages_controller.rb +9 -9
- data/app/controllers/grandstand/posts_controller.rb +64 -0
- data/app/controllers/{admin → grandstand}/sessions_controller.rb +8 -8
- data/app/controllers/grandstand/templates_controller.rb +8 -0
- data/app/controllers/{admin → grandstand}/users_controller.rb +10 -10
- data/app/controllers/posts_controller.rb +1 -1
- data/app/helpers/galleries_helper.rb +2 -0
- data/app/helpers/grandstand/galleries_helper.rb +2 -0
- data/app/helpers/grandstand/images_helpers.rb +2 -0
- data/app/helpers/grandstand/main_helper.rb +74 -0
- data/app/helpers/grandstand/pages_helper.rb +2 -0
- data/app/helpers/grandstand/posts_helper.rb +2 -0
- data/app/helpers/grandstand/sessions_helper.rb +2 -0
- data/app/helpers/grandstand/templates_helper.rb +2 -0
- data/app/helpers/grandstand/users_helper.rb +2 -0
- data/app/models/{gallery.rb → grandstand/gallery.rb} +2 -2
- data/app/models/{image.rb → grandstand/image.rb} +10 -9
- data/app/models/{page.rb → grandstand/page.rb} +1 -1
- data/app/models/grandstand/page_section.rb +6 -0
- data/app/models/{post.rb → grandstand/post.rb} +14 -2
- data/app/models/{template.rb → grandstand/template.rb} +2 -2
- data/app/models/{user.rb → grandstand/user.rb} +1 -1
- data/app/stylesheets/application.less +103 -10
- data/app/stylesheets/global.less +47 -30
- data/app/stylesheets/login.less +1 -1
- data/app/stylesheets/wysiwyg.less +77 -65
- data/app/views/{admin → grandstand}/galleries/_form.html.erb +2 -2
- data/app/views/grandstand/galleries/_gallery.html.erb +16 -0
- data/app/views/grandstand/galleries/_list.html.erb +17 -0
- data/app/views/grandstand/galleries/delete.html.erb +8 -0
- data/app/views/grandstand/galleries/edit.html.erb +8 -0
- data/app/views/grandstand/galleries/editor.html.erb +33 -0
- data/app/views/grandstand/galleries/index.html.erb +14 -0
- data/app/views/grandstand/galleries/new.html.erb +8 -0
- data/app/views/grandstand/galleries/show.html.erb +19 -0
- data/app/views/{admin → grandstand}/images/_form.html.erb +2 -2
- data/app/views/grandstand/images/delete.html.erb +8 -0
- data/app/views/grandstand/images/edit.html.erb +8 -0
- data/app/views/grandstand/images/new.html.erb +8 -0
- data/app/views/grandstand/images/show.html.erb +33 -0
- data/app/views/{admin → grandstand}/images/upload.html.erb +2 -2
- data/app/views/grandstand/main/index.html.erb +10 -0
- data/app/views/{admin → grandstand}/pages/_form.html.erb +2 -2
- data/app/views/grandstand/pages/_left.html.erb +3 -0
- data/app/views/{admin → grandstand}/pages/_row.html.erb +3 -3
- data/app/views/{admin → grandstand}/pages/delete.html.erb +2 -2
- data/app/views/{admin → grandstand}/pages/edit.html.erb +2 -2
- data/app/views/{admin → grandstand}/pages/index.html.erb +1 -1
- data/app/views/{admin → grandstand}/pages/new.html.erb +2 -2
- data/app/views/{admin → grandstand}/pages/show.html.erb +1 -1
- data/app/views/grandstand/posts/_form.html.erb +15 -0
- data/app/views/grandstand/posts/_left.html.erb +3 -0
- data/app/views/grandstand/posts/_list.html.erb +26 -0
- data/app/views/{admin → grandstand}/posts/delete.html.erb +2 -2
- data/app/views/grandstand/posts/edit.html.erb +8 -0
- data/app/views/{admin → grandstand}/posts/index.html.erb +1 -1
- data/app/views/grandstand/posts/new.html.erb +8 -0
- data/app/views/grandstand/posts/preview.html.erb +9 -0
- data/app/views/grandstand/posts/show.html.erb +8 -0
- data/app/views/{admin → grandstand}/sessions/forgot.html.erb +2 -2
- data/app/views/{admin → grandstand}/sessions/show.html.erb +2 -2
- data/app/views/grandstand/shared/_flash.html.erb +3 -0
- data/app/views/{admin → grandstand}/users/_form.html.erb +2 -2
- data/app/views/grandstand/users/_left.html.erb +3 -0
- data/app/views/{admin → grandstand}/users/delete.html.erb +2 -2
- data/app/views/grandstand/users/edit.html.erb +8 -0
- data/app/views/{admin → grandstand}/users/index.html.erb +3 -3
- data/app/views/grandstand/users/new.html.erb +8 -0
- data/app/views/grandstand/users/show.html.erb +12 -0
- data/app/views/layouts/grandstand.html.erb +76 -0
- data/app/views/layouts/grandstand_login.html.erb +17 -0
- data/app/views/layouts/{admin_xhr.html.erb → grandstand_xhr.html.erb} +0 -0
- data/app/views/posts/show.html.erb +2 -2
- data/{lib/grandstand → config}/routes.rb +9 -7
- data/grandstand.gemspec +139 -122
- data/lib/grandstand.rb +50 -19
- data/lib/grandstand/application.rb +27 -35
- data/lib/grandstand/controller.rb +4 -6
- data/lib/grandstand/form_builder.rb +19 -0
- data/lib/grandstand/helper.rb +1 -47
- data/lib/grandstand/session.rb +2 -11
- data/lib/grandstand/stylesheets_controller.rb +14 -0
- data/public/{admin → grandstand}/images/background-input.gif +0 -0
- data/public/{admin → grandstand}/images/background-progress-bar.png +0 -0
- data/public/{admin → grandstand}/images/background-progress-complete.gif +0 -0
- data/public/{admin → grandstand}/images/background-progress.gif +0 -0
- data/public/grandstand/images/galleries-empty.png +0 -0
- data/public/{admin → grandstand}/images/icons/add.png +0 -0
- data/public/{admin → grandstand}/images/icons/collapse.png +0 -0
- data/public/{admin → grandstand}/images/icons/delete.png +0 -0
- data/public/{admin → grandstand}/images/icons/edit.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/bold.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/gallery.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/image-center.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/image-left.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/image-right.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/image.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/italic.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/ordered-list.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/quote.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/source.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/strikethrough.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/underline.png +0 -0
- data/public/{admin → grandstand}/images/icons/editor/unordered-list.png +0 -0
- data/public/{admin → grandstand}/images/icons/error.png +0 -0
- data/public/{admin → grandstand}/images/icons/expand.png +0 -0
- data/public/{admin → grandstand}/images/icons/galleries.png +0 -0
- data/public/{admin → grandstand}/images/icons/gallery.png +0 -0
- data/public/{admin → grandstand}/images/icons/image.png +0 -0
- data/public/{admin → grandstand}/images/icons/okay.png +0 -0
- data/public/{admin → grandstand}/images/icons/pages.png +0 -0
- data/public/{admin → grandstand}/images/icons/posts.png +0 -0
- data/public/grandstand/images/icons/processing.gif +0 -0
- data/public/{admin → grandstand}/images/icons/upload.png +0 -0
- data/public/{admin → grandstand}/images/icons/users.png +0 -0
- data/public/{admin → grandstand}/images/logo.png +0 -0
- data/public/{admin → grandstand}/images/spinner-dark.gif +0 -0
- data/public/{admin → grandstand}/images/uploader.swf +0 -0
- data/public/{admin → grandstand}/javascripts/application.js +139 -54
- data/public/grandstand/javascripts/jquery.js +414 -0
- data/public/{admin → grandstand}/javascripts/mustache.js +0 -0
- data/public/grandstand/javascripts/preview.js +9 -0
- data/public/{admin → grandstand}/javascripts/selection.js +77 -57
- data/public/{admin → grandstand}/javascripts/string.js +7 -6
- data/public/grandstand/javascripts/wysiwyg.js +311 -0
- data/public/{admin → grandstand}/stylesheets/wysiwyg-content.css +15 -2
- metadata +207 -126
- data/README +0 -7
- data/app/controllers/admin/posts_controller.rb +0 -48
- data/app/controllers/admin/templates_controller.rb +0 -6
- data/app/helpers/admin/main_helper.rb +0 -31
- data/app/helpers/admin/pages_helper.rb +0 -2
- data/app/helpers/admin/posts_helper.rb +0 -2
- data/app/helpers/admin/sessions_helper.rb +0 -2
- data/app/helpers/admin/templates_helper.rb +0 -2
- data/app/helpers/admin/users_helper.rb +0 -2
- data/app/models/page_section.rb +0 -6
- data/app/stylesheets/_dialogs.less +0 -85
- data/app/views/admin/galleries/_gallery.html.erb +0 -16
- data/app/views/admin/galleries/_list.html.erb +0 -17
- data/app/views/admin/galleries/delete.html.erb +0 -8
- data/app/views/admin/galleries/edit.html.erb +0 -8
- data/app/views/admin/galleries/editor.html.erb +0 -13
- data/app/views/admin/galleries/editor_with_images.html.erb +0 -19
- data/app/views/admin/galleries/index.html.erb +0 -13
- data/app/views/admin/galleries/new.html.erb +0 -8
- data/app/views/admin/galleries/show.html.erb +0 -15
- data/app/views/admin/images/delete.html.erb +0 -8
- data/app/views/admin/images/edit.html.erb +0 -8
- data/app/views/admin/images/new.html.erb +0 -8
- data/app/views/admin/main/index.html.erb +0 -10
- data/app/views/admin/pages/_left.html.erb +0 -3
- data/app/views/admin/posts/_form.html.erb +0 -29
- data/app/views/admin/posts/_left.html.erb +0 -3
- data/app/views/admin/posts/_list.html.erb +0 -22
- data/app/views/admin/posts/edit.html.erb +0 -10
- data/app/views/admin/posts/new.html.erb +0 -10
- data/app/views/admin/posts/show.html.erb +0 -4
- data/app/views/admin/shared/_flash.html.erb +0 -3
- data/app/views/admin/users/_left.html.erb +0 -3
- data/app/views/admin/users/edit.html.erb +0 -8
- data/app/views/admin/users/new.html.erb +0 -8
- data/app/views/admin/users/show.html.erb +0 -12
- data/app/views/layouts/admin.html.erb +0 -80
- data/app/views/layouts/admin_login.html.erb +0 -17
- data/lib/grandstand/controller/development.rb +0 -15
- data/public/admin/javascripts/jquery.js +0 -404
- data/public/admin/javascripts/wysiwyg.js +0 -335
- data/public/admin/stylesheets/application.css +0 -1
- data/public/admin/stylesheets/global.css +0 -1
- data/public/admin/stylesheets/login.css +0 -1
- data/public/admin/stylesheets/wysiwyg.css +0 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
<tr class="row <%= cycle 'one', 'two' %><%= " child-of-#{page.parent_id}" if page.parent_id %>">
|
2
|
-
<td style="padding-left:<%= indent * 10 + 5 %>;"><%= link_to page.name,
|
2
|
+
<td style="padding-left:<%= indent * 10 + 5 %>;"><%= link_to page.name, grandstand_page_path(page) %></td>
|
3
3
|
<td><%= link_to url = page_url(page.url), url %></td>
|
4
4
|
<td class="actions">
|
5
|
-
<%= button_link_to 'Edit',
|
6
|
-
<%= button_link_to 'Delete',
|
5
|
+
<%= button_link_to 'Edit', edit_grandstand_page_path(page), :icon => :edit %>
|
6
|
+
<%= button_link_to 'Delete', delete_grandstand_page_path(page), :icon => :delete %>
|
7
7
|
</td>
|
8
8
|
</tr>
|
9
9
|
<%= render :partial => 'row', :collection => page.children, :as => :page, :locals => {:indent => indent.next} %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<h2>Are you sure you want to do this?</h2>
|
2
|
-
<% form_for(@page, :html => {:method => :delete}, :url =>
|
2
|
+
<% form_for(@page, :as => :page, :html => {:method => :delete}, :url => grandstand_page_path(@page)) do %>
|
3
3
|
<div class="field">You cannot undo this once it's done! This page will be dead. Not undead, like a zombie. Just plain dead.</div>
|
4
4
|
<div class="toolbar">
|
5
5
|
<%= button('Delete') %>
|
6
|
-
<%= button_link_to('Cancel',
|
6
|
+
<%= button_link_to('Cancel', grandstand_pages_path, :class => 'cancel') %>
|
7
7
|
</div>
|
8
8
|
<% end %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<h1 class="pages icon"><%= @page.name %></h1>
|
2
|
-
<% form_for(@page, :url =>
|
2
|
+
<% form_for(@page, :as => :page, :url => grandstand_page_path(@page)) do |form| -%>
|
3
3
|
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
4
|
<div class="toolbar">
|
5
5
|
<%= button 'Save' %>
|
6
|
-
<%= button_link_to('Cancel',
|
6
|
+
<%= button_link_to('Cancel', grandstand_pages_path, :class => 'cancel') %>
|
7
7
|
</div>
|
8
8
|
<% end -%>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% if @pages.empty? -%>
|
4
4
|
<div class="inset">
|
5
5
|
<h2>You haven't created any pages!</h2>
|
6
|
-
<b class="grey">Get started:</b> <%= button_link_to('Add a Page',
|
6
|
+
<b class="grey">Get started:</b> <%= button_link_to('Add a Page', new_grandstand_page_path, :icon => 'add') %>
|
7
7
|
</div>
|
8
8
|
<% else -%>
|
9
9
|
<table class="grid">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<h1 class="pages icon">New Page</h1>
|
2
|
-
<%= form_for(@page, :url =>
|
2
|
+
<%= form_for(@page, :as => :page, :url => grandstand_pages_path) do |form| %>
|
3
3
|
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
4
|
<div class="toolbar">
|
5
5
|
<%= button 'Add Page' %>
|
6
|
-
<%= button_link_to('Cancel',
|
6
|
+
<%= button_link_to('Cancel', grandstand_pages_path, :class => 'cancel') %>
|
7
7
|
</div>
|
8
8
|
<% end =%>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<%= render :partial => 'left' %>
|
2
|
-
<h1 class="pages icon"><%= @page.name %> <%= button_link_to('Edit',
|
2
|
+
<h1 class="pages icon"><%= @page.name %> <%= button_link_to('Edit', edit_grandstand_page_path(@page), :icon => 'edit') %></h1>
|
3
3
|
<div class="quiet"><%= link_to url = page_url(@page.url), url %></div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= render :partial => 'left' %>
|
2
|
+
<% content_for :head do -%>
|
3
|
+
<%= stylesheet_link_tag '/grandstand/stylesheets/wysiwyg.css' %>
|
4
|
+
<% end -%>
|
5
|
+
<% wrap_grandstand_form do -%>
|
6
|
+
<div class="field">
|
7
|
+
<%= form.label :name %>
|
8
|
+
<%= form.text_field :name, :class => 'oversized text' %>
|
9
|
+
<%= form.errors_on(:post, :name) %>
|
10
|
+
</div>
|
11
|
+
<div class="field">
|
12
|
+
<%= form.label :body %>
|
13
|
+
<%= form.text_area :body, :class => 'wysiwyg' %>
|
14
|
+
</div>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<table class="grid">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<th>Name</th>
|
5
|
+
<th>Author</th>
|
6
|
+
<th colspan="2">Date</th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<% posts.each do |post| -%>
|
11
|
+
<tr class="row <%= cycle 'one', 'two' %>">
|
12
|
+
<td><%= link_to post.name, grandstand_post_path(post) %></td>
|
13
|
+
<% if post.user -%>
|
14
|
+
<td><%= link_to(post.user.name, grandstand_user_path(post.user)) %></td>
|
15
|
+
<% else -%>
|
16
|
+
<td><i>none</i></td>
|
17
|
+
<% end -%>
|
18
|
+
<td><%= post.posted_at.to_date %>
|
19
|
+
<td class="actions">
|
20
|
+
<%= button_link_to 'Edit', edit_grandstand_post_path(post), :icon => :edit %>
|
21
|
+
<%= button_link_to 'Delete', delete_grandstand_post_path(post), :icon => :delete %>
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
<% end -%>
|
25
|
+
</tbody>
|
26
|
+
</table>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<%= render :partial => 'left' %>
|
2
2
|
<h2>Are you sure you want to do this?</h2>
|
3
|
-
<% form_for(@post, :html => {:method => :delete}, :url =>
|
3
|
+
<% form_for(@post, :as => :post, :html => {:method => :delete}, :url => grandstand_post_path(@post)) do %>
|
4
4
|
<div class="field">You cannot undo this once it's done! This post, and all the creative ideas therein, will be gone forever.</div>
|
5
5
|
<div class="toolbar">
|
6
6
|
<%= button('Delete') %>
|
7
|
-
<%= button_link_to('Cancel',
|
7
|
+
<%= button_link_to('Cancel', grandstand_posts_path, :class => 'cancel') %>
|
8
8
|
</div>
|
9
9
|
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<h1 class="posts icon"><%= @post.name %></h1>
|
2
|
+
<%= form_for(@post, :as => :post, :html => {:method => :put}, :url => grandstand_post_path(@post)) do |form| %>
|
3
|
+
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
|
+
<div class="toolbar">
|
5
|
+
<%= button 'Save' %>
|
6
|
+
<%= button_link_to('Cancel', return_path || grandstand_posts_path, :class => 'cancel') %>
|
7
|
+
</div>
|
8
|
+
<% end =%>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% if @posts.empty? -%>
|
4
4
|
<div class="inset">
|
5
5
|
<h2>You haven't written any posts!</h2>
|
6
|
-
<b class="grey">Get started:</b> <%= button_link_to('Add a Post',
|
6
|
+
<b class="grey">Get started:</b> <%= button_link_to('Add a Post', new_grandstand_post_path, :icon => 'add') %>
|
7
7
|
</div>
|
8
8
|
<% else -%>
|
9
9
|
<%= render :partial => 'list', :locals => {:posts => @posts} %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<h1 class="posts icon">New Blog Post</h1>
|
2
|
+
<% form_for(@post, :as => :post, :url => grandstand_posts_path) do |form| -%>
|
3
|
+
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
|
+
<div class="toolbar">
|
5
|
+
<%= button 'Add Post' %>
|
6
|
+
<%= button_link_to('Cancel', grandstand_posts_path, :class => 'cancel') %>
|
7
|
+
</div>
|
8
|
+
<% end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= javascript_include_tag '/grandstand/javascripts/jquery.js', '/grandstand/javascripts/preview.js' %>
|
2
|
+
<%= form_for(@post, :as => :post, :html => {:class => 'grandstand'}) do |form| %>
|
3
|
+
<%= form.text_field(:name, :class => 'oversized text') %>
|
4
|
+
<%= raw Mustache.render(Grandstand::Template.post, Grandstand::Post.new(:body => form.text_area(:body, :class => 'wysiwyg')).as_json) %>
|
5
|
+
<div class="toolbar">
|
6
|
+
<%= button 'Save' %>
|
7
|
+
<%= button_link_to('Cancel', return_path || grandstand_posts_path, :class => 'cancel') %>
|
8
|
+
</div>
|
9
|
+
<% end =%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= render :partial => 'left' %>
|
2
|
+
<h1 class="posts icon">
|
3
|
+
<%= @post.name %>
|
4
|
+
<%= button_link_to('Edit', edit_grandstand_post_path(@post), :icon => 'edit') %>
|
5
|
+
<%= button_link_to('Delete', delete_grandstand_post_path(@post), :class => 'remote', :icon => 'delete') %>
|
6
|
+
</h1>
|
7
|
+
<div class="quiet"><%= link_to url = post_url(@post.posted_at.year, @post.posted_at.month, @post.url), url %></div>
|
8
|
+
<%= raw @post.body %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<h1>Forgot Password</h1>
|
2
|
-
<% form_tag(
|
2
|
+
<% form_tag(reset_grandstand_session_path) do %>
|
3
3
|
<p>
|
4
4
|
<label for="email">E-mail</label>
|
5
5
|
<%= text_field_tag(:email, '', :class => 'oversized text') %>
|
6
6
|
</p>
|
7
|
-
<%= button 'Reset Password', :class => 'grey' %> <%= button_link_to 'Return to Log In',
|
7
|
+
<%= button 'Reset Password', :class => 'grey' %> <%= button_link_to 'Return to Log In', grandstand_session_path %>
|
8
8
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<h1>Log In</h1>
|
2
|
-
<% form_tag(
|
2
|
+
<% form_tag(grandstand_session_path) do %>
|
3
3
|
<p>
|
4
4
|
<label for="email">E-mail</label>
|
5
5
|
<%= text_field_tag(:email, '', :class => 'oversized text') %>
|
@@ -8,5 +8,5 @@
|
|
8
8
|
<label for="password">Password</label>
|
9
9
|
<%= password_field_tag(:password, '', :class => 'oversized text') %>
|
10
10
|
</p>
|
11
|
-
<%= button 'Log In', :class => 'grey' %> <%= button_link_to 'Forgot Your Password?',
|
11
|
+
<%= button 'Log In', :class => 'grey' %> <%= button_link_to 'Forgot Your Password?', forgot_grandstand_session_path %>
|
12
12
|
<% end %>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<%
|
1
|
+
<% wrap_grandstand_form do -%>
|
2
2
|
<div class="field">
|
3
3
|
<%= form.label :first_name %>
|
4
4
|
<%= form.text_field :first_name, :class => 'half oversized text' %>
|
5
5
|
<%= form.text_field :last_name, :class => 'half oversized text' %>
|
6
|
-
<%= errors_on(:user, :first_name) %>
|
6
|
+
<%= form.errors_on(:user, :first_name) %>
|
7
7
|
</div>
|
8
8
|
<div class="field">
|
9
9
|
<%= form.label :email %>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<h2>Are you sure you want to do this?</h2>
|
2
|
-
<% form_for(@user, :html => {:method => :delete}, :url =>
|
2
|
+
<% form_for(@user, :as => :user, :html => {:method => :delete}, :url => grandstand_user_path(@user)) do %>
|
3
3
|
<div class="field">
|
4
4
|
You cannot undo this once it's done! This user will be gone, and so will their posts and galleries. Be careful! This could have dire effects.
|
5
5
|
</div>
|
6
6
|
<div class="toolbar">
|
7
7
|
<%= button('Delete') %>
|
8
|
-
<%= button_link_to('Cancel',
|
8
|
+
<%= button_link_to('Cancel', grandstand_users_path, :class => 'cancel') %>
|
9
9
|
</div>
|
10
10
|
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<h2>Edit User</h2>
|
2
|
+
<% form_for(@user, :as => :user, :url => grandstand_user_path(@user)) do |form| -%>
|
3
|
+
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
|
+
<div class="toolbar">
|
5
|
+
<%= button 'Save' %>
|
6
|
+
<%= button_link_to('Cancel', grandstand_users_path, :class => 'cancel') %>
|
7
|
+
</div>
|
8
|
+
<% end -%>
|
@@ -10,11 +10,11 @@
|
|
10
10
|
<tbody>
|
11
11
|
<% @users.each do |user| -%>
|
12
12
|
<tr class="row <%= cycle 'one', 'two' %>">
|
13
|
-
<td><%= link_to user.name,
|
13
|
+
<td><%= link_to user.name, grandstand_user_path(user) %></td>
|
14
14
|
<td><%= user.email %></td>
|
15
15
|
<td class="actions">
|
16
|
-
<%= button_link_to 'Edit',
|
17
|
-
<%= button_link_to 'Delete',
|
16
|
+
<%= button_link_to 'Edit', edit_grandstand_user_path(user), :class => 'remote', :icon => :edit %>
|
17
|
+
<%= button_link_to 'Delete', delete_grandstand_user_path(user), :class => 'remote', :icon => :delete unless user.id == current_user.id %>
|
18
18
|
</td>
|
19
19
|
</tr>
|
20
20
|
<% end -%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<h2>New User</h2>
|
2
|
+
<% form_for(@user, :as => :user, :url => grandstand_users_path) do |form| -%>
|
3
|
+
<%= render :partial => 'form', :locals => {:form => form} %>
|
4
|
+
<div class="toolbar">
|
5
|
+
<%= button 'Add User' %>
|
6
|
+
<%= button_link_to('Cancel', grandstand_users_path, :class => 'cancel') %>
|
7
|
+
</div>
|
8
|
+
<% end -%>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= render :partial => 'left' %>
|
2
|
+
<h1 class="users icon"><%= @user.name %> <%= button_link_to('Edit', edit_grandstand_user_path(@user), :class => 'remote', :icon => 'edit') %></h1>
|
3
|
+
<% unless @user.posts.empty? -%>
|
4
|
+
<h2>Blog Posts</h2>
|
5
|
+
<%= render :partial => 'grandstand/posts/list', :locals => {:posts => @user.posts} %>
|
6
|
+
<% end -%>
|
7
|
+
<% unless @user.galleries.empty? -%>
|
8
|
+
<h2>Galleries</h2>
|
9
|
+
<div class="galleries">
|
10
|
+
<%= render :partial => 'grandstand/galleries/list', :locals => {:galleries => @user.galleries} %>
|
11
|
+
</div>
|
12
|
+
<% end -%>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>Grandstand Admin</title>
|
7
|
+
<%= javascript_include_tag('/grandstand/javascripts/jquery', '/grandstand/javascripts/application') %>
|
8
|
+
<%= stylesheet_link_tag('/grandstand/stylesheets/global', '/grandstand/stylesheets/application') %>
|
9
|
+
<%= csrf_meta_tag %>
|
10
|
+
<%= yield :head %>
|
11
|
+
</head>
|
12
|
+
<body class="grandstand">
|
13
|
+
<%= render :partial => 'grandstand/shared/flash', :locals => {:flash => flash} %>
|
14
|
+
<div id="header">
|
15
|
+
<div class="float-left">
|
16
|
+
<%= link_to(image_tag('/grandstand/images/logo.png', :alt => Grandstand.app_name), grandstand_root_path, :id => 'logo') %>
|
17
|
+
</div>
|
18
|
+
<div class="float-right">
|
19
|
+
<%= link_to('View Site', '/', :target => :new) %>
|
20
|
+
<%= link_to('Logout', grandstand_session_path, :method => :delete) %>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div id="content">
|
24
|
+
<div id="left">
|
25
|
+
<%= yield :left %>
|
26
|
+
<ul>
|
27
|
+
<li<%= expand(:posts, :class => 'first') %>>
|
28
|
+
<%= expand_link(:posts) unless no_posts = Grandstand::Post.count.zero? %>
|
29
|
+
<%= link_to('Blog Posts', grandstand_posts_path) %>
|
30
|
+
<% unless no_posts -%>
|
31
|
+
<ul>
|
32
|
+
<% Grandstand::Post.limit(10).each do |post| -%>
|
33
|
+
<li><%= link_to(post.name, grandstand_post_path(post)) %></li>
|
34
|
+
<% end -%>
|
35
|
+
</ul>
|
36
|
+
<% end -%>
|
37
|
+
</li>
|
38
|
+
<li<%= expand(:galleries, :images) %>>
|
39
|
+
<%= expand_link(:galleries) unless no_galleries = Grandstand::Gallery.count.zero? %>
|
40
|
+
<%= link_to('Galleries', grandstand_galleries_path) %>
|
41
|
+
<% unless no_galleries -%>
|
42
|
+
<ul>
|
43
|
+
<% Grandstand::Gallery.limit(10).each do |gallery| -%>
|
44
|
+
<li><%= link_to(gallery.name, grandstand_gallery_path(gallery)) %></li>
|
45
|
+
<% end -%>
|
46
|
+
</ul>
|
47
|
+
<% end -%>
|
48
|
+
</li>
|
49
|
+
<% if false -%>
|
50
|
+
<li<%= expand(:pages) %>>
|
51
|
+
<%= expand_link(:pages) %>
|
52
|
+
<%= link_to('Pages', grandstand_pages_path) %>
|
53
|
+
<% unless Page.roots.count.zero? -%>
|
54
|
+
<ul>
|
55
|
+
<% Grandstand::Page.roots.limit(10).each do |page| -%>
|
56
|
+
<li><%= link_to(page.name, grandstand_page_path(page)) %></li>
|
57
|
+
<% end -%>
|
58
|
+
</ul>
|
59
|
+
<% end -%>
|
60
|
+
</li>
|
61
|
+
<% end -%>
|
62
|
+
<li class="last">
|
63
|
+
<%= link_to('Users', grandstand_users_path) %>
|
64
|
+
</li>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
<div id="main">
|
68
|
+
<%= yield %>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
<div id="footer">
|
72
|
+
</div>
|
73
|
+
<div id="cover" style="display:none;"></div>
|
74
|
+
<div id="dialog" style="display:none;"></div>
|
75
|
+
</body>
|
76
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title><% if current_page %><%= current_page.title %> - <% end %>Grandstand</title>
|
7
|
+
<%= javascript_include_tag('/grandstand/javascripts/jquery', '/grandstand/javascripts/application') %>
|
8
|
+
<%= stylesheet_link_tag('/grandstand/stylesheets/global', '/grandstand/stylesheets/login') %>
|
9
|
+
</head>
|
10
|
+
<body class="grandstand">
|
11
|
+
<%= render :partial => 'grandstand/shared/flash', :locals => {:flash => flash} %>
|
12
|
+
<%= link_to(image_tag('/grandstand/images/logo.png', :alt => Grandstand.app_name), grandstand_root_path, :id => 'logo') %>
|
13
|
+
<div class="inset" id="login">
|
14
|
+
<%= yield %>
|
15
|
+
</div>
|
16
|
+
</body>
|
17
|
+
</html>
|
File without changes
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<h1><%= @post.name %></h1>
|
2
|
-
<div class="meta">posted <%= @post.
|
3
|
-
<%= raw
|
2
|
+
<div class="meta">posted <%= @post.posted_at.strftime('%m.%d.%Y').gsub(/^0/, '').gsub(/\.0/, '.') %></div>
|
3
|
+
<%= raw @post.to_html %>
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
match ':year/:month/:id', :to => 'posts#show', :as => 'post', :constraints => {:year => /\d\d\d\d/, :month => /\d{1,2}/}
|
4
|
-
|
5
|
-
namespace :admin do
|
1
|
+
Rails::Application.routes.draw do |map|
|
2
|
+
namespace :grandstand, Grandstand.routing_options do
|
6
3
|
resource :session do
|
7
4
|
member do
|
8
5
|
get :forgot
|
@@ -22,7 +19,7 @@ Grandstand::Application.routes.draw do |map|
|
|
22
19
|
get :delete
|
23
20
|
end
|
24
21
|
|
25
|
-
resources :images
|
22
|
+
resources :images do
|
26
23
|
collection do
|
27
24
|
post :reorder
|
28
25
|
get :upload
|
@@ -55,5 +52,10 @@ Grandstand::Application.routes.draw do |map|
|
|
55
52
|
end
|
56
53
|
end
|
57
54
|
|
58
|
-
|
55
|
+
# if Rails.env.development?
|
56
|
+
# require 'grandstand/stylesheets_controller'
|
57
|
+
# namespace :grandstand do
|
58
|
+
# get 'stylesheets/:name.css', :to => 'stylesheets#show'
|
59
|
+
# end
|
60
|
+
# end
|
59
61
|
end
|
data/grandstand.gemspec
CHANGED
@@ -5,105 +5,110 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{grandstand}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Flip Sasser"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-10}
|
13
13
|
s.description = %q{
|
14
14
|
Grandstand is a simple blog and photo gallery application. It takes a minimal amount of configuration and can
|
15
|
-
be built installed as a gem and used
|
15
|
+
be built installed as a gem and used within minutes. It's totally cool. Seriously.
|
16
16
|
}
|
17
17
|
s.email = %q{flip@x451.com}
|
18
18
|
s.extra_rdoc_files = [
|
19
|
-
"README"
|
19
|
+
"README.markdown",
|
20
|
+
"README.txt"
|
20
21
|
]
|
21
22
|
s.files = [
|
22
23
|
".gitignore",
|
23
24
|
"MIT-LICENSE",
|
24
|
-
"README",
|
25
|
+
"README.markdown",
|
26
|
+
"README.txt",
|
25
27
|
"Rakefile",
|
26
28
|
"VERSION",
|
27
|
-
"app/controllers/admin/galleries_controller.rb",
|
28
|
-
"app/controllers/admin/images_controller.rb",
|
29
|
-
"app/controllers/admin/main_controller.rb",
|
30
|
-
"app/controllers/admin/pages_controller.rb",
|
31
|
-
"app/controllers/admin/posts_controller.rb",
|
32
|
-
"app/controllers/admin/sessions_controller.rb",
|
33
|
-
"app/controllers/admin/templates_controller.rb",
|
34
|
-
"app/controllers/admin/users_controller.rb",
|
35
29
|
"app/controllers/galleries_controller.rb",
|
30
|
+
"app/controllers/grandstand/galleries_controller.rb",
|
31
|
+
"app/controllers/grandstand/images_controller.rb",
|
32
|
+
"app/controllers/grandstand/main_controller.rb",
|
33
|
+
"app/controllers/grandstand/pages_controller.rb",
|
34
|
+
"app/controllers/grandstand/posts_controller.rb",
|
35
|
+
"app/controllers/grandstand/sessions_controller.rb",
|
36
|
+
"app/controllers/grandstand/templates_controller.rb",
|
37
|
+
"app/controllers/grandstand/users_controller.rb",
|
36
38
|
"app/controllers/pages_controller.rb",
|
37
39
|
"app/controllers/posts_controller.rb",
|
38
|
-
"app/helpers/
|
39
|
-
"app/helpers/
|
40
|
-
"app/helpers/
|
41
|
-
"app/helpers/
|
42
|
-
"app/helpers/
|
43
|
-
"app/helpers/
|
40
|
+
"app/helpers/galleries_helper.rb",
|
41
|
+
"app/helpers/grandstand/galleries_helper.rb",
|
42
|
+
"app/helpers/grandstand/images_helpers.rb",
|
43
|
+
"app/helpers/grandstand/main_helper.rb",
|
44
|
+
"app/helpers/grandstand/pages_helper.rb",
|
45
|
+
"app/helpers/grandstand/posts_helper.rb",
|
46
|
+
"app/helpers/grandstand/sessions_helper.rb",
|
47
|
+
"app/helpers/grandstand/templates_helper.rb",
|
48
|
+
"app/helpers/grandstand/users_helper.rb",
|
44
49
|
"app/helpers/pages_helper.rb",
|
45
50
|
"app/helpers/posts_helper.rb",
|
46
51
|
"app/helpers/site_helper.rb",
|
47
|
-
"app/models/gallery.rb",
|
48
|
-
"app/models/image.rb",
|
49
|
-
"app/models/page.rb",
|
50
|
-
"app/models/page_section.rb",
|
51
|
-
"app/models/post.rb",
|
52
|
-
"app/models/template.rb",
|
53
|
-
"app/models/user.rb",
|
52
|
+
"app/models/grandstand/gallery.rb",
|
53
|
+
"app/models/grandstand/image.rb",
|
54
|
+
"app/models/grandstand/page.rb",
|
55
|
+
"app/models/grandstand/page_section.rb",
|
56
|
+
"app/models/grandstand/post.rb",
|
57
|
+
"app/models/grandstand/template.rb",
|
58
|
+
"app/models/grandstand/user.rb",
|
54
59
|
"app/stylesheets/_buttons.less",
|
55
|
-
"app/stylesheets/_dialogs.less",
|
56
60
|
"app/stylesheets/application.less",
|
57
61
|
"app/stylesheets/global.less",
|
58
62
|
"app/stylesheets/login.less",
|
59
63
|
"app/stylesheets/wysiwyg.less",
|
60
|
-
"app/views/admin/galleries/_form.html.erb",
|
61
|
-
"app/views/admin/galleries/_gallery.html.erb",
|
62
|
-
"app/views/admin/galleries/_list.html.erb",
|
63
|
-
"app/views/admin/galleries/delete.html.erb",
|
64
|
-
"app/views/admin/galleries/edit.html.erb",
|
65
|
-
"app/views/admin/galleries/editor.html.erb",
|
66
|
-
"app/views/admin/galleries/editor_with_images.html.erb",
|
67
|
-
"app/views/admin/galleries/index.html.erb",
|
68
|
-
"app/views/admin/galleries/new.html.erb",
|
69
|
-
"app/views/admin/galleries/show.html.erb",
|
70
|
-
"app/views/admin/images/_form.html.erb",
|
71
|
-
"app/views/admin/images/delete.html.erb",
|
72
|
-
"app/views/admin/images/edit.html.erb",
|
73
|
-
"app/views/admin/images/new.html.erb",
|
74
|
-
"app/views/admin/images/upload.html.erb",
|
75
|
-
"app/views/admin/main/index.html.erb",
|
76
|
-
"app/views/admin/pages/_form.html.erb",
|
77
|
-
"app/views/admin/pages/_left.html.erb",
|
78
|
-
"app/views/admin/pages/_row.html.erb",
|
79
|
-
"app/views/admin/pages/delete.html.erb",
|
80
|
-
"app/views/admin/pages/edit.html.erb",
|
81
|
-
"app/views/admin/pages/index.html.erb",
|
82
|
-
"app/views/admin/pages/new.html.erb",
|
83
|
-
"app/views/admin/pages/show.html.erb",
|
84
|
-
"app/views/admin/posts/_form.html.erb",
|
85
|
-
"app/views/admin/posts/_left.html.erb",
|
86
|
-
"app/views/admin/posts/_list.html.erb",
|
87
|
-
"app/views/admin/posts/delete.html.erb",
|
88
|
-
"app/views/admin/posts/edit.html.erb",
|
89
|
-
"app/views/admin/posts/index.html.erb",
|
90
|
-
"app/views/admin/posts/new.html.erb",
|
91
|
-
"app/views/admin/posts/show.html.erb",
|
92
|
-
"app/views/admin/sessions/forgot.html.erb",
|
93
|
-
"app/views/admin/sessions/show.html.erb",
|
94
|
-
"app/views/admin/shared/_flash.html.erb",
|
95
|
-
"app/views/admin/users/_form.html.erb",
|
96
|
-
"app/views/admin/users/_left.html.erb",
|
97
|
-
"app/views/admin/users/delete.html.erb",
|
98
|
-
"app/views/admin/users/edit.html.erb",
|
99
|
-
"app/views/admin/users/index.html.erb",
|
100
|
-
"app/views/admin/users/new.html.erb",
|
101
|
-
"app/views/admin/users/show.html.erb",
|
102
64
|
"app/views/galleries/index.html.erb",
|
103
65
|
"app/views/galleries/show.html.erb",
|
104
|
-
"app/views/
|
105
|
-
"app/views/
|
106
|
-
"app/views/
|
66
|
+
"app/views/grandstand/galleries/_form.html.erb",
|
67
|
+
"app/views/grandstand/galleries/_gallery.html.erb",
|
68
|
+
"app/views/grandstand/galleries/_list.html.erb",
|
69
|
+
"app/views/grandstand/galleries/delete.html.erb",
|
70
|
+
"app/views/grandstand/galleries/edit.html.erb",
|
71
|
+
"app/views/grandstand/galleries/editor.html.erb",
|
72
|
+
"app/views/grandstand/galleries/index.html.erb",
|
73
|
+
"app/views/grandstand/galleries/new.html.erb",
|
74
|
+
"app/views/grandstand/galleries/show.html.erb",
|
75
|
+
"app/views/grandstand/images/_form.html.erb",
|
76
|
+
"app/views/grandstand/images/delete.html.erb",
|
77
|
+
"app/views/grandstand/images/edit.html.erb",
|
78
|
+
"app/views/grandstand/images/new.html.erb",
|
79
|
+
"app/views/grandstand/images/show.html.erb",
|
80
|
+
"app/views/grandstand/images/upload.html.erb",
|
81
|
+
"app/views/grandstand/main/index.html.erb",
|
82
|
+
"app/views/grandstand/pages/_form.html.erb",
|
83
|
+
"app/views/grandstand/pages/_left.html.erb",
|
84
|
+
"app/views/grandstand/pages/_row.html.erb",
|
85
|
+
"app/views/grandstand/pages/delete.html.erb",
|
86
|
+
"app/views/grandstand/pages/edit.html.erb",
|
87
|
+
"app/views/grandstand/pages/index.html.erb",
|
88
|
+
"app/views/grandstand/pages/new.html.erb",
|
89
|
+
"app/views/grandstand/pages/show.html.erb",
|
90
|
+
"app/views/grandstand/posts/_form.html.erb",
|
91
|
+
"app/views/grandstand/posts/_left.html.erb",
|
92
|
+
"app/views/grandstand/posts/_list.html.erb",
|
93
|
+
"app/views/grandstand/posts/delete.html.erb",
|
94
|
+
"app/views/grandstand/posts/edit.html.erb",
|
95
|
+
"app/views/grandstand/posts/index.html.erb",
|
96
|
+
"app/views/grandstand/posts/new.html.erb",
|
97
|
+
"app/views/grandstand/posts/preview.html.erb",
|
98
|
+
"app/views/grandstand/posts/show.html.erb",
|
99
|
+
"app/views/grandstand/sessions/forgot.html.erb",
|
100
|
+
"app/views/grandstand/sessions/show.html.erb",
|
101
|
+
"app/views/grandstand/shared/_flash.html.erb",
|
102
|
+
"app/views/grandstand/users/_form.html.erb",
|
103
|
+
"app/views/grandstand/users/_left.html.erb",
|
104
|
+
"app/views/grandstand/users/delete.html.erb",
|
105
|
+
"app/views/grandstand/users/edit.html.erb",
|
106
|
+
"app/views/grandstand/users/index.html.erb",
|
107
|
+
"app/views/grandstand/users/new.html.erb",
|
108
|
+
"app/views/grandstand/users/show.html.erb",
|
109
|
+
"app/views/layouts/grandstand.html.erb",
|
110
|
+
"app/views/layouts/grandstand_login.html.erb",
|
111
|
+
"app/views/layouts/grandstand_xhr.html.erb",
|
107
112
|
"app/views/pages/show.html.erb",
|
108
113
|
"app/views/posts/show.html.erb",
|
109
114
|
"app/views/shared/404.html.erb",
|
@@ -111,64 +116,61 @@ Gem::Specification.new do |s|
|
|
111
116
|
"app/views/shared/image.html",
|
112
117
|
"app/views/shared/page.html",
|
113
118
|
"app/views/shared/post.html",
|
119
|
+
"config/routes.rb",
|
114
120
|
"grandstand.gemspec",
|
115
121
|
"lib/grandstand.rb",
|
116
122
|
"lib/grandstand/application.rb",
|
117
123
|
"lib/grandstand/controller.rb",
|
118
|
-
"lib/grandstand/
|
124
|
+
"lib/grandstand/form_builder.rb",
|
119
125
|
"lib/grandstand/helper.rb",
|
120
|
-
"lib/grandstand/routes.rb",
|
121
126
|
"lib/grandstand/session.rb",
|
127
|
+
"lib/grandstand/stylesheets_controller.rb",
|
122
128
|
"pkg/grandstand-0.2.1.gem",
|
123
129
|
"public/.DS_Store",
|
124
|
-
"public/
|
125
|
-
"public/
|
126
|
-
"public/
|
127
|
-
"public/
|
128
|
-
"public/
|
129
|
-
"public/
|
130
|
-
"public/
|
131
|
-
"public/
|
132
|
-
"public/
|
133
|
-
"public/
|
134
|
-
"public/
|
135
|
-
"public/
|
136
|
-
"public/
|
137
|
-
"public/
|
138
|
-
"public/
|
139
|
-
"public/
|
140
|
-
"public/
|
141
|
-
"public/
|
142
|
-
"public/
|
143
|
-
"public/
|
144
|
-
"public/
|
145
|
-
"public/
|
146
|
-
"public/
|
147
|
-
"public/
|
148
|
-
"public/
|
149
|
-
"public/
|
150
|
-
"public/
|
151
|
-
"public/
|
152
|
-
"public/
|
153
|
-
"public/
|
154
|
-
"public/
|
155
|
-
"public/
|
156
|
-
"public/
|
157
|
-
"public/
|
158
|
-
"public/
|
159
|
-
"public/
|
160
|
-
"public/
|
161
|
-
"public/
|
162
|
-
"public/
|
163
|
-
"public/
|
164
|
-
"public/
|
165
|
-
"public/
|
166
|
-
"public/
|
167
|
-
"public/
|
168
|
-
"public/admin/stylesheets/global.css",
|
169
|
-
"public/admin/stylesheets/login.css",
|
170
|
-
"public/admin/stylesheets/wysiwyg-content.css",
|
171
|
-
"public/admin/stylesheets/wysiwyg.css",
|
130
|
+
"public/grandstand/images/background-input.gif",
|
131
|
+
"public/grandstand/images/background-progress-bar.png",
|
132
|
+
"public/grandstand/images/background-progress-complete.gif",
|
133
|
+
"public/grandstand/images/background-progress.gif",
|
134
|
+
"public/grandstand/images/galleries-empty.png",
|
135
|
+
"public/grandstand/images/icons/add.png",
|
136
|
+
"public/grandstand/images/icons/collapse.png",
|
137
|
+
"public/grandstand/images/icons/delete.png",
|
138
|
+
"public/grandstand/images/icons/edit.png",
|
139
|
+
"public/grandstand/images/icons/editor/bold.png",
|
140
|
+
"public/grandstand/images/icons/editor/gallery.png",
|
141
|
+
"public/grandstand/images/icons/editor/image-center.png",
|
142
|
+
"public/grandstand/images/icons/editor/image-left.png",
|
143
|
+
"public/grandstand/images/icons/editor/image-right.png",
|
144
|
+
"public/grandstand/images/icons/editor/image.png",
|
145
|
+
"public/grandstand/images/icons/editor/italic.png",
|
146
|
+
"public/grandstand/images/icons/editor/ordered-list.png",
|
147
|
+
"public/grandstand/images/icons/editor/quote.png",
|
148
|
+
"public/grandstand/images/icons/editor/source.png",
|
149
|
+
"public/grandstand/images/icons/editor/strikethrough.png",
|
150
|
+
"public/grandstand/images/icons/editor/underline.png",
|
151
|
+
"public/grandstand/images/icons/editor/unordered-list.png",
|
152
|
+
"public/grandstand/images/icons/error.png",
|
153
|
+
"public/grandstand/images/icons/expand.png",
|
154
|
+
"public/grandstand/images/icons/galleries.png",
|
155
|
+
"public/grandstand/images/icons/gallery.png",
|
156
|
+
"public/grandstand/images/icons/image.png",
|
157
|
+
"public/grandstand/images/icons/okay.png",
|
158
|
+
"public/grandstand/images/icons/pages.png",
|
159
|
+
"public/grandstand/images/icons/posts.png",
|
160
|
+
"public/grandstand/images/icons/processing.gif",
|
161
|
+
"public/grandstand/images/icons/upload.png",
|
162
|
+
"public/grandstand/images/icons/users.png",
|
163
|
+
"public/grandstand/images/logo.png",
|
164
|
+
"public/grandstand/images/spinner-dark.gif",
|
165
|
+
"public/grandstand/images/uploader.swf",
|
166
|
+
"public/grandstand/javascripts/application.js",
|
167
|
+
"public/grandstand/javascripts/jquery.js",
|
168
|
+
"public/grandstand/javascripts/mustache.js",
|
169
|
+
"public/grandstand/javascripts/preview.js",
|
170
|
+
"public/grandstand/javascripts/selection.js",
|
171
|
+
"public/grandstand/javascripts/string.js",
|
172
|
+
"public/grandstand/javascripts/wysiwyg.js",
|
173
|
+
"public/grandstand/stylesheets/wysiwyg-content.css",
|
172
174
|
"vendor/cache/more-0.1.1.gem"
|
173
175
|
]
|
174
176
|
s.homepage = %q{http://github.com/flipsasser/grandstand}
|
@@ -182,9 +184,24 @@ Gem::Specification.new do |s|
|
|
182
184
|
s.specification_version = 3
|
183
185
|
|
184
186
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
187
|
+
s.add_development_dependency(%q<less>, [">= 1.2.21"])
|
188
|
+
s.add_development_dependency(%q<more>, [">= 0.1.1"])
|
189
|
+
s.add_runtime_dependency(%q<aws-s3>, [">= 0.6.2"])
|
190
|
+
s.add_runtime_dependency(%q<mustache>, [">= 0.11.2"])
|
191
|
+
s.add_runtime_dependency(%q<paperclip>, [">= 2.3.3"])
|
185
192
|
else
|
193
|
+
s.add_dependency(%q<less>, [">= 1.2.21"])
|
194
|
+
s.add_dependency(%q<more>, [">= 0.1.1"])
|
195
|
+
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
196
|
+
s.add_dependency(%q<mustache>, [">= 0.11.2"])
|
197
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.3"])
|
186
198
|
end
|
187
199
|
else
|
200
|
+
s.add_dependency(%q<less>, [">= 1.2.21"])
|
201
|
+
s.add_dependency(%q<more>, [">= 0.1.1"])
|
202
|
+
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
203
|
+
s.add_dependency(%q<mustache>, [">= 0.11.2"])
|
204
|
+
s.add_dependency(%q<paperclip>, [">= 2.3.3"])
|
188
205
|
end
|
189
206
|
end
|
190
207
|
|