grandstand 0.2.4 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/README.markdown +43 -0
  3. data/README.txt +0 -0
  4. data/Rakefile +7 -1
  5. data/VERSION +1 -1
  6. data/app/controllers/galleries_controller.rb +2 -2
  7. data/app/controllers/{admin → grandstand}/galleries_controller.rb +9 -13
  8. data/app/controllers/{admin → grandstand}/images_controller.rb +6 -9
  9. data/app/controllers/{admin → grandstand}/main_controller.rb +8 -8
  10. data/app/controllers/{admin → grandstand}/pages_controller.rb +9 -9
  11. data/app/controllers/grandstand/posts_controller.rb +64 -0
  12. data/app/controllers/{admin → grandstand}/sessions_controller.rb +8 -8
  13. data/app/controllers/grandstand/templates_controller.rb +8 -0
  14. data/app/controllers/{admin → grandstand}/users_controller.rb +10 -10
  15. data/app/controllers/posts_controller.rb +1 -1
  16. data/app/helpers/galleries_helper.rb +2 -0
  17. data/app/helpers/grandstand/galleries_helper.rb +2 -0
  18. data/app/helpers/grandstand/images_helpers.rb +2 -0
  19. data/app/helpers/grandstand/main_helper.rb +74 -0
  20. data/app/helpers/grandstand/pages_helper.rb +2 -0
  21. data/app/helpers/grandstand/posts_helper.rb +2 -0
  22. data/app/helpers/grandstand/sessions_helper.rb +2 -0
  23. data/app/helpers/grandstand/templates_helper.rb +2 -0
  24. data/app/helpers/grandstand/users_helper.rb +2 -0
  25. data/app/models/{gallery.rb → grandstand/gallery.rb} +2 -2
  26. data/app/models/{image.rb → grandstand/image.rb} +10 -9
  27. data/app/models/{page.rb → grandstand/page.rb} +1 -1
  28. data/app/models/grandstand/page_section.rb +6 -0
  29. data/app/models/{post.rb → grandstand/post.rb} +14 -2
  30. data/app/models/{template.rb → grandstand/template.rb} +2 -2
  31. data/app/models/{user.rb → grandstand/user.rb} +1 -1
  32. data/app/stylesheets/application.less +103 -10
  33. data/app/stylesheets/global.less +47 -30
  34. data/app/stylesheets/login.less +1 -1
  35. data/app/stylesheets/wysiwyg.less +77 -65
  36. data/app/views/{admin → grandstand}/galleries/_form.html.erb +2 -2
  37. data/app/views/grandstand/galleries/_gallery.html.erb +16 -0
  38. data/app/views/grandstand/galleries/_list.html.erb +17 -0
  39. data/app/views/grandstand/galleries/delete.html.erb +8 -0
  40. data/app/views/grandstand/galleries/edit.html.erb +8 -0
  41. data/app/views/grandstand/galleries/editor.html.erb +33 -0
  42. data/app/views/grandstand/galleries/index.html.erb +14 -0
  43. data/app/views/grandstand/galleries/new.html.erb +8 -0
  44. data/app/views/grandstand/galleries/show.html.erb +19 -0
  45. data/app/views/{admin → grandstand}/images/_form.html.erb +2 -2
  46. data/app/views/grandstand/images/delete.html.erb +8 -0
  47. data/app/views/grandstand/images/edit.html.erb +8 -0
  48. data/app/views/grandstand/images/new.html.erb +8 -0
  49. data/app/views/grandstand/images/show.html.erb +33 -0
  50. data/app/views/{admin → grandstand}/images/upload.html.erb +2 -2
  51. data/app/views/grandstand/main/index.html.erb +10 -0
  52. data/app/views/{admin → grandstand}/pages/_form.html.erb +2 -2
  53. data/app/views/grandstand/pages/_left.html.erb +3 -0
  54. data/app/views/{admin → grandstand}/pages/_row.html.erb +3 -3
  55. data/app/views/{admin → grandstand}/pages/delete.html.erb +2 -2
  56. data/app/views/{admin → grandstand}/pages/edit.html.erb +2 -2
  57. data/app/views/{admin → grandstand}/pages/index.html.erb +1 -1
  58. data/app/views/{admin → grandstand}/pages/new.html.erb +2 -2
  59. data/app/views/{admin → grandstand}/pages/show.html.erb +1 -1
  60. data/app/views/grandstand/posts/_form.html.erb +15 -0
  61. data/app/views/grandstand/posts/_left.html.erb +3 -0
  62. data/app/views/grandstand/posts/_list.html.erb +26 -0
  63. data/app/views/{admin → grandstand}/posts/delete.html.erb +2 -2
  64. data/app/views/grandstand/posts/edit.html.erb +8 -0
  65. data/app/views/{admin → grandstand}/posts/index.html.erb +1 -1
  66. data/app/views/grandstand/posts/new.html.erb +8 -0
  67. data/app/views/grandstand/posts/preview.html.erb +9 -0
  68. data/app/views/grandstand/posts/show.html.erb +8 -0
  69. data/app/views/{admin → grandstand}/sessions/forgot.html.erb +2 -2
  70. data/app/views/{admin → grandstand}/sessions/show.html.erb +2 -2
  71. data/app/views/grandstand/shared/_flash.html.erb +3 -0
  72. data/app/views/{admin → grandstand}/users/_form.html.erb +2 -2
  73. data/app/views/grandstand/users/_left.html.erb +3 -0
  74. data/app/views/{admin → grandstand}/users/delete.html.erb +2 -2
  75. data/app/views/grandstand/users/edit.html.erb +8 -0
  76. data/app/views/{admin → grandstand}/users/index.html.erb +3 -3
  77. data/app/views/grandstand/users/new.html.erb +8 -0
  78. data/app/views/grandstand/users/show.html.erb +12 -0
  79. data/app/views/layouts/grandstand.html.erb +76 -0
  80. data/app/views/layouts/grandstand_login.html.erb +17 -0
  81. data/app/views/layouts/{admin_xhr.html.erb → grandstand_xhr.html.erb} +0 -0
  82. data/app/views/posts/show.html.erb +2 -2
  83. data/{lib/grandstand → config}/routes.rb +9 -7
  84. data/grandstand.gemspec +139 -122
  85. data/lib/grandstand.rb +50 -19
  86. data/lib/grandstand/application.rb +27 -35
  87. data/lib/grandstand/controller.rb +4 -6
  88. data/lib/grandstand/form_builder.rb +19 -0
  89. data/lib/grandstand/helper.rb +1 -47
  90. data/lib/grandstand/session.rb +2 -11
  91. data/lib/grandstand/stylesheets_controller.rb +14 -0
  92. data/public/{admin → grandstand}/images/background-input.gif +0 -0
  93. data/public/{admin → grandstand}/images/background-progress-bar.png +0 -0
  94. data/public/{admin → grandstand}/images/background-progress-complete.gif +0 -0
  95. data/public/{admin → grandstand}/images/background-progress.gif +0 -0
  96. data/public/grandstand/images/galleries-empty.png +0 -0
  97. data/public/{admin → grandstand}/images/icons/add.png +0 -0
  98. data/public/{admin → grandstand}/images/icons/collapse.png +0 -0
  99. data/public/{admin → grandstand}/images/icons/delete.png +0 -0
  100. data/public/{admin → grandstand}/images/icons/edit.png +0 -0
  101. data/public/{admin → grandstand}/images/icons/editor/bold.png +0 -0
  102. data/public/{admin → grandstand}/images/icons/editor/gallery.png +0 -0
  103. data/public/{admin → grandstand}/images/icons/editor/image-center.png +0 -0
  104. data/public/{admin → grandstand}/images/icons/editor/image-left.png +0 -0
  105. data/public/{admin → grandstand}/images/icons/editor/image-right.png +0 -0
  106. data/public/{admin → grandstand}/images/icons/editor/image.png +0 -0
  107. data/public/{admin → grandstand}/images/icons/editor/italic.png +0 -0
  108. data/public/{admin → grandstand}/images/icons/editor/ordered-list.png +0 -0
  109. data/public/{admin → grandstand}/images/icons/editor/quote.png +0 -0
  110. data/public/{admin → grandstand}/images/icons/editor/source.png +0 -0
  111. data/public/{admin → grandstand}/images/icons/editor/strikethrough.png +0 -0
  112. data/public/{admin → grandstand}/images/icons/editor/underline.png +0 -0
  113. data/public/{admin → grandstand}/images/icons/editor/unordered-list.png +0 -0
  114. data/public/{admin → grandstand}/images/icons/error.png +0 -0
  115. data/public/{admin → grandstand}/images/icons/expand.png +0 -0
  116. data/public/{admin → grandstand}/images/icons/galleries.png +0 -0
  117. data/public/{admin → grandstand}/images/icons/gallery.png +0 -0
  118. data/public/{admin → grandstand}/images/icons/image.png +0 -0
  119. data/public/{admin → grandstand}/images/icons/okay.png +0 -0
  120. data/public/{admin → grandstand}/images/icons/pages.png +0 -0
  121. data/public/{admin → grandstand}/images/icons/posts.png +0 -0
  122. data/public/grandstand/images/icons/processing.gif +0 -0
  123. data/public/{admin → grandstand}/images/icons/upload.png +0 -0
  124. data/public/{admin → grandstand}/images/icons/users.png +0 -0
  125. data/public/{admin → grandstand}/images/logo.png +0 -0
  126. data/public/{admin → grandstand}/images/spinner-dark.gif +0 -0
  127. data/public/{admin → grandstand}/images/uploader.swf +0 -0
  128. data/public/{admin → grandstand}/javascripts/application.js +139 -54
  129. data/public/grandstand/javascripts/jquery.js +414 -0
  130. data/public/{admin → grandstand}/javascripts/mustache.js +0 -0
  131. data/public/grandstand/javascripts/preview.js +9 -0
  132. data/public/{admin → grandstand}/javascripts/selection.js +77 -57
  133. data/public/{admin → grandstand}/javascripts/string.js +7 -6
  134. data/public/grandstand/javascripts/wysiwyg.js +311 -0
  135. data/public/{admin → grandstand}/stylesheets/wysiwyg-content.css +15 -2
  136. metadata +207 -126
  137. data/README +0 -7
  138. data/app/controllers/admin/posts_controller.rb +0 -48
  139. data/app/controllers/admin/templates_controller.rb +0 -6
  140. data/app/helpers/admin/main_helper.rb +0 -31
  141. data/app/helpers/admin/pages_helper.rb +0 -2
  142. data/app/helpers/admin/posts_helper.rb +0 -2
  143. data/app/helpers/admin/sessions_helper.rb +0 -2
  144. data/app/helpers/admin/templates_helper.rb +0 -2
  145. data/app/helpers/admin/users_helper.rb +0 -2
  146. data/app/models/page_section.rb +0 -6
  147. data/app/stylesheets/_dialogs.less +0 -85
  148. data/app/views/admin/galleries/_gallery.html.erb +0 -16
  149. data/app/views/admin/galleries/_list.html.erb +0 -17
  150. data/app/views/admin/galleries/delete.html.erb +0 -8
  151. data/app/views/admin/galleries/edit.html.erb +0 -8
  152. data/app/views/admin/galleries/editor.html.erb +0 -13
  153. data/app/views/admin/galleries/editor_with_images.html.erb +0 -19
  154. data/app/views/admin/galleries/index.html.erb +0 -13
  155. data/app/views/admin/galleries/new.html.erb +0 -8
  156. data/app/views/admin/galleries/show.html.erb +0 -15
  157. data/app/views/admin/images/delete.html.erb +0 -8
  158. data/app/views/admin/images/edit.html.erb +0 -8
  159. data/app/views/admin/images/new.html.erb +0 -8
  160. data/app/views/admin/main/index.html.erb +0 -10
  161. data/app/views/admin/pages/_left.html.erb +0 -3
  162. data/app/views/admin/posts/_form.html.erb +0 -29
  163. data/app/views/admin/posts/_left.html.erb +0 -3
  164. data/app/views/admin/posts/_list.html.erb +0 -22
  165. data/app/views/admin/posts/edit.html.erb +0 -10
  166. data/app/views/admin/posts/new.html.erb +0 -10
  167. data/app/views/admin/posts/show.html.erb +0 -4
  168. data/app/views/admin/shared/_flash.html.erb +0 -3
  169. data/app/views/admin/users/_left.html.erb +0 -3
  170. data/app/views/admin/users/edit.html.erb +0 -8
  171. data/app/views/admin/users/new.html.erb +0 -8
  172. data/app/views/admin/users/show.html.erb +0 -12
  173. data/app/views/layouts/admin.html.erb +0 -80
  174. data/app/views/layouts/admin_login.html.erb +0 -17
  175. data/lib/grandstand/controller/development.rb +0 -15
  176. data/public/admin/javascripts/jquery.js +0 -404
  177. data/public/admin/javascripts/wysiwyg.js +0 -335
  178. data/public/admin/stylesheets/application.css +0 -1
  179. data/public/admin/stylesheets/global.css +0 -1
  180. data/public/admin/stylesheets/login.css +0 -1
  181. 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, admin_page_path(page) %></td>
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', edit_admin_page_path(page), :icon => :edit %>
6
- <%= button_link_to 'Delete', delete_admin_page_path(page), :icon => :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 => admin_page_path(@page)) do %>
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', admin_pages_path, :class => '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 => admin_page_path(@page)) do |form| -%>
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', admin_pages_path, :class => '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', new_admin_page_path, :icon => 'add') %>
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 => admin_pages_path) do |form| %>
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', admin_pages_path, :class => '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', edit_admin_page_path(@page), :icon => 'edit') %></h1>
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,3 @@
1
+ <% content_for :left do %>
2
+ <%= button_link_to('Add a Post', new_grandstand_post_path, :icon => 'add') %>
3
+ <% 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 => admin_post_path(@post)) do %>
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', admin_posts_path, :class => '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', new_admin_post_path, :icon => 'add') %>
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(reset_admin_session_path) do %>
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', admin_session_path %>
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(admin_session_path) do %>
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?', forgot_admin_session_path %>
11
+ <%= button 'Log In', :class => 'grey' %> <%= button_link_to 'Forgot Your Password?', forgot_grandstand_session_path %>
12
12
  <% end %>
@@ -0,0 +1,3 @@
1
+ <% flash.each do |key, message| -%>
2
+ <div class="notification <%= key %>"><div class="inner"><%= message %></div></div>
3
+ <% end -%>
@@ -1,9 +1,9 @@
1
- <% wrap_admin_form do -%>
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 %>
@@ -0,0 +1,3 @@
1
+ <% content_for :left do %>
2
+ <%= button_link_to('Add a User', new_grandstand_user_path, :class => 'remote', :icon => 'add') %>
3
+ <% end %>
@@ -1,10 +1,10 @@
1
1
  <h2>Are you sure you want to do this?</h2>
2
- <% form_for(@user, :html => {:method => :delete}, :url => admin_user_path(@user)) do %>
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', admin_users_path, :class => '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, admin_user_path(user) %></td>
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', edit_admin_user_path(user), :class => 'remote', :icon => :edit %>
17
- <%= button_link_to 'Delete', delete_admin_user_path(user), :class => 'remote', :icon => :delete unless user.id == current_user.id %>
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>
@@ -1,3 +1,3 @@
1
1
  <h1><%= @post.name %></h1>
2
- <div class="meta">posted <%= @post.created_at.strftime('%m.%d.%Y').gsub(/^0/, '').gsub(/\.0/, '.') %></div>
3
- <%= raw Mustache.render(::Template.post, @post.as_json) %>
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
- Grandstand::Application.routes.draw do |map|
2
- resources :galleries, :only => [:index, :show]
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, :except => [:show] do
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
- match '*url', :to => 'pages#show', :as => 'page'
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.4"
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-08-20}
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 like any other thingymagig. It's totally cool.
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/admin/main_helper.rb",
39
- "app/helpers/admin/pages_helper.rb",
40
- "app/helpers/admin/posts_helper.rb",
41
- "app/helpers/admin/sessions_helper.rb",
42
- "app/helpers/admin/templates_helper.rb",
43
- "app/helpers/admin/users_helper.rb",
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/layouts/admin.html.erb",
105
- "app/views/layouts/admin_login.html.erb",
106
- "app/views/layouts/admin_xhr.html.erb",
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/controller/development.rb",
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/admin/.DS_Store",
125
- "public/admin/images/.DS_Store",
126
- "public/admin/images/background-input.gif",
127
- "public/admin/images/background-progress-bar.png",
128
- "public/admin/images/background-progress-complete.gif",
129
- "public/admin/images/background-progress.gif",
130
- "public/admin/images/icons/.DS_Store",
131
- "public/admin/images/icons/add.png",
132
- "public/admin/images/icons/collapse.png",
133
- "public/admin/images/icons/delete.png",
134
- "public/admin/images/icons/edit.png",
135
- "public/admin/images/icons/editor/bold.png",
136
- "public/admin/images/icons/editor/gallery.png",
137
- "public/admin/images/icons/editor/image-center.png",
138
- "public/admin/images/icons/editor/image-left.png",
139
- "public/admin/images/icons/editor/image-right.png",
140
- "public/admin/images/icons/editor/image.png",
141
- "public/admin/images/icons/editor/italic.png",
142
- "public/admin/images/icons/editor/ordered-list.png",
143
- "public/admin/images/icons/editor/quote.png",
144
- "public/admin/images/icons/editor/source.png",
145
- "public/admin/images/icons/editor/strikethrough.png",
146
- "public/admin/images/icons/editor/underline.png",
147
- "public/admin/images/icons/editor/unordered-list.png",
148
- "public/admin/images/icons/error.png",
149
- "public/admin/images/icons/expand.png",
150
- "public/admin/images/icons/galleries.png",
151
- "public/admin/images/icons/gallery.png",
152
- "public/admin/images/icons/image.png",
153
- "public/admin/images/icons/okay.png",
154
- "public/admin/images/icons/pages.png",
155
- "public/admin/images/icons/posts.png",
156
- "public/admin/images/icons/upload.png",
157
- "public/admin/images/icons/users.png",
158
- "public/admin/images/logo.png",
159
- "public/admin/images/spinner-dark.gif",
160
- "public/admin/images/uploader.swf",
161
- "public/admin/javascripts/application.js",
162
- "public/admin/javascripts/jquery.js",
163
- "public/admin/javascripts/mustache.js",
164
- "public/admin/javascripts/selection.js",
165
- "public/admin/javascripts/string.js",
166
- "public/admin/javascripts/wysiwyg.js",
167
- "public/admin/stylesheets/application.css",
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