sbdevcore 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/app/assets/images/28DaysLater.ttf +0 -0
  2. data/app/assets/images/ajax-loader.gif +0 -0
  3. data/app/assets/javascripts/jquery.tools.min.js +16 -108
  4. data/app/assets/javascripts/rails.validations.custom.js +5 -0
  5. data/app/assets/javascripts/sbdev-ajax.js +14 -0
  6. data/app/assets/javascripts/sbdevcore-tools.js +24 -37
  7. data/app/assets/javascripts/sbdevcore.js +8 -3
  8. data/app/assets/javascripts/tiny_mce_config.js +2 -0
  9. data/app/assets/stylesheets/_bar_nav.scss +6 -4
  10. data/app/assets/stylesheets/_buttons.scss +16 -10
  11. data/app/assets/stylesheets/_forms.scss +51 -0
  12. data/app/assets/stylesheets/_mixins.scss +40 -15
  13. data/app/assets/stylesheets/_overlay.scss +4 -7
  14. data/app/assets/stylesheets/_sbdev_core.scss +55 -19
  15. data/app/assets/stylesheets/_yui_base.scss +142 -0
  16. data/app/controllers/contacts_controller.rb +2 -36
  17. data/app/controllers/downloadables_controller.rb +6 -46
  18. data/app/controllers/galleries_controller.rb +4 -49
  19. data/app/controllers/indices_controller.rb +2 -45
  20. data/app/controllers/photos_controller.rb +4 -48
  21. data/app/controllers/sbdev_core_controller.rb +40 -0
  22. data/app/controllers/texts_controller.rb +3 -46
  23. data/app/controllers/videos_controller.rb +4 -45
  24. data/app/models/contact.rb +5 -1
  25. data/app/models/downloadable.rb +3 -1
  26. data/app/models/index.rb +4 -1
  27. data/app/models/photo.rb +3 -1
  28. data/app/models/video.rb +2 -0
  29. data/app/views/admins/mailer/confirmation_instructions.html.haml +4 -0
  30. data/app/views/admins/mailer/reset_password_instructions.html.haml +6 -0
  31. data/app/views/admins/mailer/unlock_instructions.html.haml +5 -0
  32. data/app/views/admins/passwords/edit.html.haml +8 -0
  33. data/app/views/admins/passwords/new.html.haml +6 -0
  34. data/app/views/admins/sessions/new.html.haml +8 -0
  35. data/app/views/admins/shared/_links.haml +19 -0
  36. data/app/views/application/_header.html.haml +1 -0
  37. data/app/views/application/_secondary_nav.html.haml +3 -0
  38. data/app/views/contacts/_form.html.haml +5 -0
  39. data/app/views/contacts/edit.html.haml +6 -0
  40. data/app/views/contacts/index.html.haml +21 -0
  41. data/app/views/contacts/new.html.haml +2 -0
  42. data/app/views/contacts/show.html.haml +24 -0
  43. data/app/views/downloadables/_form.html.haml +6 -0
  44. data/app/views/downloadables/_show.html.haml +7 -0
  45. data/app/views/downloadables/edit.html.haml +3 -0
  46. data/app/views/downloadables/new.html.haml +4 -0
  47. data/app/views/galleries/_form.html.haml +22 -0
  48. data/app/views/galleries/edit.html.haml +10 -0
  49. data/app/views/galleries/index.html.haml +9 -0
  50. data/app/views/galleries/new.html.haml +3 -0
  51. data/app/views/galleries/show.html.haml +9 -0
  52. data/app/views/indices/_form.html.haml +43 -0
  53. data/app/views/indices/_show.html.haml +17 -0
  54. data/app/views/indices/edit.html.haml +3 -0
  55. data/app/views/indices/index.html.haml +17 -0
  56. data/app/views/layouts/application.html.haml +16 -1
  57. data/app/views/layouts/bar_nav.html.haml +7 -14
  58. data/app/views/layouts/sbdev_core.html.haml +39 -0
  59. data/app/views/layouts/tab_nav.html.haml +9 -14
  60. data/app/views/mailer/message.haml +4 -0
  61. data/app/views/photos/_form.html.haml +10 -0
  62. data/app/views/photos/_show.html.haml +7 -0
  63. data/app/views/photos/edit.html.haml +3 -0
  64. data/app/views/photos/index.html.haml +21 -0
  65. data/app/views/photos/new.html.haml +4 -0
  66. data/app/views/photos/show.html.haml +4 -0
  67. data/app/views/sbdev_core/index.html.haml +1 -0
  68. data/app/views/sbdev_core/show.html.haml +4 -0
  69. data/app/views/sbdev_core/show.js.haml +1 -0
  70. data/app/views/shared/_asset_show.html.haml +1 -0
  71. data/app/views/shared/_devise_links.haml +15 -0
  72. data/app/views/shared/_gallery.html.haml +14 -0
  73. data/app/views/shared/_prioritizable_fields.html.haml +5 -0
  74. data/app/views/texts/_form.html.haml +3 -0
  75. data/app/views/texts/_show.html.haml +6 -0
  76. data/app/views/texts/edit.html.haml +3 -0
  77. data/app/views/texts/new.html.haml +4 -0
  78. data/app/views/texts/show.html.haml +8 -0
  79. data/app/views/videos/_form.html.haml +7 -0
  80. data/app/views/videos/_show.html.haml +12 -0
  81. data/app/views/videos/edit.html.haml +3 -0
  82. data/app/views/videos/index.html.haml +11 -0
  83. data/app/views/videos/new.html.haml +4 -0
  84. data/app/views/videos/show.html.haml +9 -0
  85. data/app/views/videos/show.js.haml +4 -0
  86. data/config/initializers/client_side_validations.rb +14 -0
  87. data/config/initializers/custom_validators.rb +15 -0
  88. data/config/initializers/load_app_config.rb +2 -0
  89. data/config/initializers/simple_form.rb +93 -0
  90. data/config/locales/en.yml +4 -1
  91. data/db/migrate/20110811000613_create_indices.rb +3 -0
  92. data/db/seeds.rb +23 -57
  93. data/lib/generators/sbdevcore/install_generator.rb +0 -2
  94. data/lib/generators/sbdevcore/templates/application.scss +1 -0
  95. data/lib/generators/sbdevcore/templates/application/_404.html.haml +2 -0
  96. data/lib/generators/sbdevcore/templates/application/_footer.html.haml +2 -1
  97. data/lib/generators/sbdevcore/templates/application/_inline_nav.html.haml +3 -0
  98. data/lib/generators/sbdevcore/templates/application/_nav.html.haml +1 -1
  99. data/lib/generators/sbdevcore/templates/config/initializers/mailer_setup.rb +2 -2
  100. data/lib/generators/sbdevcore/templates/config/initializers/simple_form.rb +93 -0
  101. data/lib/generators/sbdevcore/templates/new_contact.html.haml +4 -0
  102. data/lib/sbdevcore.rb +25 -2
  103. data/lib/sbdevcore/engine.rb +13 -34
  104. data/lib/sbdevcore/version.rb +1 -1
  105. data/lib/tasks/sbdevcore.rake +1 -1
  106. data/public/404.html +2 -2
  107. data/sbdevcore.gemspec +7 -2
  108. metadata +296 -156
  109. data/app/assets/stylesheets/_js_errors.scss +0 -26
  110. data/app/controllers/core_controller.rb +0 -5
  111. data/app/controllers/sbdevcore/application_controller_extensions.rb +0 -13
  112. data/app/controllers/statics_controller.rb +0 -6
  113. data/app/models/asset.rb +0 -27
  114. data/app/views/admins/confirmations/new.html.erb +0 -12
  115. data/app/views/admins/mailer/confirmation_instructions.html.erb +0 -5
  116. data/app/views/admins/mailer/reset_password_instructions.html.erb +0 -8
  117. data/app/views/admins/mailer/unlock_instructions.html.erb +0 -7
  118. data/app/views/admins/passwords/edit.html.erb +0 -16
  119. data/app/views/admins/passwords/new.html.erb +0 -12
  120. data/app/views/admins/registrations/edit.html.erb +0 -25
  121. data/app/views/admins/registrations/new.html.erb +0 -18
  122. data/app/views/admins/sessions/new.html.erb +0 -17
  123. data/app/views/admins/unlocks/new.html.erb +0 -12
  124. data/app/views/contacts/_form.html.erb +0 -18
  125. data/app/views/contacts/edit.html.erb +0 -8
  126. data/app/views/contacts/index.html.erb +0 -27
  127. data/app/views/contacts/new.html.erb +0 -4
  128. data/app/views/contacts/show.html.erb +0 -32
  129. data/app/views/downloadables/_form.html.erb +0 -17
  130. data/app/views/downloadables/_show.html.erb +0 -8
  131. data/app/views/downloadables/edit.html.erb +0 -4
  132. data/app/views/downloadables/new.html.erb +0 -6
  133. data/app/views/galleries/_form.html.erb +0 -33
  134. data/app/views/galleries/edit.html.erb +0 -13
  135. data/app/views/galleries/index.html.erb +0 -16
  136. data/app/views/galleries/new.html.erb +0 -8
  137. data/app/views/galleries/show.html.erb +0 -17
  138. data/app/views/indices/_form.html.erb +0 -60
  139. data/app/views/indices/_show.html.erb +0 -22
  140. data/app/views/indices/edit.html.erb +0 -12
  141. data/app/views/indices/index.html.erb +0 -23
  142. data/app/views/indices/new.html.erb +0 -8
  143. data/app/views/indices/show.html.erb +0 -4
  144. data/app/views/indices/show.js.erb +0 -1
  145. data/app/views/photos/_form.html.erb +0 -27
  146. data/app/views/photos/_show.html.erb +0 -14
  147. data/app/views/photos/edit.html.erb +0 -4
  148. data/app/views/photos/index.html.erb +0 -27
  149. data/app/views/photos/new.html.erb +0 -6
  150. data/app/views/photos/overlay.html.erb +0 -1
  151. data/app/views/photos/show.html.erb +0 -5
  152. data/app/views/shared/_asset_show.html.erb +0 -1
  153. data/app/views/shared/_gallery.html.erb +0 -21
  154. data/app/views/shared/_prioritizable_fields.html.erb +0 -10
  155. data/app/views/shared/course_type_index.html.erb +0 -16
  156. data/app/views/texts/_form.html.erb +0 -9
  157. data/app/views/texts/_new.html.erb +0 -6
  158. data/app/views/texts/_show.html.erb +0 -9
  159. data/app/views/texts/edit.html.erb +0 -4
  160. data/app/views/texts/new.html.erb +0 -6
  161. data/app/views/texts/show.html.erb +0 -9
  162. data/app/views/videos/_form.html.erb +0 -17
  163. data/app/views/videos/_show.html.erb +0 -16
  164. data/app/views/videos/edit.html.erb +0 -4
  165. data/app/views/videos/index.html.erb +0 -17
  166. data/app/views/videos/new.html.erb +0 -6
  167. data/app/views/videos/show.html.erb +0 -12
  168. data/lib/generators/sbdevcore/templates/application/_404.html.erb +0 -2
  169. data/lib/generators/sbdevcore/templates/application/_inline_nav.html.erb +0 -7
  170. data/lib/generators/sbdevcore/templates/config/tiny_mce.yml +0 -46
  171. data/lib/generators/sbdevcore/templates/new_contact.html.erb +0 -4
  172. data/vendor/assets/stylesheets/.gitkeep +0 -0
  173. data/vendor/plugins/.gitkeep +0 -0
@@ -1,8 +0,0 @@
1
- <%= form_for @gallery, :html => { :multipart => true } do |f| %>
2
- <%= f.error_messages %>
3
- <p><%= f.submit %></p>
4
- <%= render :partial => 'form' %>
5
- <p><%= f.submit %></p>
6
- <% end %>
7
-
8
- <p><%= link_to "Back to List", galleries_path %></p>
@@ -1,17 +0,0 @@
1
- <% render_seo @index %>
2
-
3
- <h2><%=h @gallery.title %></h2>
4
-
5
- <%= render :partial => 'indices/index' %>
6
-
7
- <% if admin_signed_in? %>
8
- <p>
9
- <%= link_to "Edit Gallery", edit_gallery_path(@gallery) %>
10
- </p>
11
- <% end %>
12
-
13
- <% content_for :post_content do %>
14
- <div class="content corner-all box-shadow">
15
- <%= render :partial => "shared/gallery", :locals => {:objs => @gallery.assets} %>
16
- </div>
17
- <% end %>
@@ -1,60 +0,0 @@
1
- <% f ||= local_assigns[:locals][:f] %>
2
- <% index ||= f.object %>
3
- <% seo ||= (local_assigns[:locals][:seo] rescue true)%>
4
- <% side ||= (local_assigns[:locals][:side] rescue true)%>
5
- <% gallery ||= (local_assigns[:locals][:gallery] rescue true)%>
6
- <p>
7
- <%= index.name %>
8
- </p>
9
-
10
- <h4>Content Sections</h4>
11
- <div class='pane clearfix'>
12
- <%= f.fields_for :content_sections, index.content_sections do |section_form| %>
13
- <%= render "sections/form", :locals => {:f => section_form, :alignment => true} %>
14
- <% end %>
15
- <p><%= link_to_add_nested('Add Section', f, :content_sections, 'sections') %></p>
16
- </div>
17
-
18
- <% if seo %>
19
- <h4>Search Engine Info</h4>
20
- <div class='pane clearfix'>
21
- <p>
22
- <%= f.label :page_title %><br />
23
- <%= f.text_field :page_title %>
24
- </p>
25
- <p>
26
- <%= f.label :keywords %><br />
27
- <%= f.text_area :keywords, :rows => 5 %>
28
- </p>
29
- <p>
30
- <%= f.label :page_description %><br />
31
- <%= f.text_area :page_description, :rows => 10 %>
32
- </p>
33
- </div>
34
- <% end %>
35
-
36
- <% if side %>
37
- <h4>Side Bar Section</h4>
38
- <% if index.side_section.nil? %>
39
- <p><%= link_to_add_nested('Add Side Section', f, :side_section, 'sections', false, true) %></p>
40
- <% else %>
41
- <div class='pane clearfix'>
42
- <%= f.fields_for :side_section, index.side_section do |section_form| %>
43
- <%= render "sections/form", :locals => {:f => section_form} %>
44
- <% end %>
45
- </div>
46
- <% end %>
47
- <% end %>
48
-
49
- <% if side %>
50
- <h4>Gallery</h4>
51
- <% if index.gallery.nil? %>
52
- <p><%= link_to_add_nested('Add Gallery', f, :gallery, 'galleries', false, true) %></p>
53
- <% else %>
54
- <div class='pane clearfix'>
55
- <%= f.fields_for :gallery, index.gallery do |section_form| %>
56
- <%= render "galleries/form", :locals => {:f => section_form} %>
57
- <% end %>
58
- </div>
59
- <% end %>
60
- <% end %>
@@ -1,22 +0,0 @@
1
- <% index ||= local_assigns[:index] %>
2
- <% render_seo index %>
3
-
4
- <div class='clearfix'><%= render :partial => 'shared/asset_show', :collection => index.assets, :as => :asset %></div>
5
- <% if admin_signed_in? %>
6
- <div>
7
- <p class="asset-admin">
8
- <%= link_to "Add Text", new_index_text_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
9
- <%= link_to "Add Photo", new_index_photo_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
10
- <%= link_to "Add Video", new_index_video_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
11
- <%= link_to "Add Downloadable File", new_index_downloadable_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
12
- </p>
13
- </div>
14
- <% end %>
15
-
16
- <% unless index.gallery.nil? %>
17
- <% content_for :post_content do %>
18
- <div class="content corner-all box-shadow">
19
- <%= render :partial => "shared/gallery", :locals => {:objs => index.gallery.assets} %>
20
- </div>
21
- <% end %>
22
- <% end %>
@@ -1,12 +0,0 @@
1
- <% title "Edit Index" %>
2
-
3
- <%= form_for @index, :html => { :multipart => true } do |f| %>
4
- <p><%= f.submit %></p>
5
- <%= render :partial => 'form', :locals => {:f => f, :index => @index} %>
6
- <p><%= f.submit %></p>
7
- <% end %>
8
-
9
- <p>
10
- <%= link_to "Show", @index %> |
11
- <%= link_to "View All", indices_path %>
12
- </p>
@@ -1,23 +0,0 @@
1
- <% title "Indices" %>
2
-
3
- <table>
4
- <tr>
5
- <th>Name</th>
6
- <th>Page Title</th>
7
- <th>Keywords</th>
8
- <th>Page Description</th>
9
- </tr>
10
- <% for index in @indices %>
11
- <tr>
12
- <td><%=h index.name %></td>
13
- <td><%=h index.page_title %></td>
14
- <td><%=h index.keywords %></td>
15
- <td><%=h index.page_description %></td>
16
- <td><%= link_to "Show", index %></td>
17
- <td><%= link_to "Edit", edit_index_path(index) %></td>
18
- <td><%= link_to "Destroy", index, :confirm => 'Are you sure?', :method => :delete %></td>
19
- </tr>
20
- <% end %>
21
- </table>
22
-
23
- <p><%= link_to "New Index", new_index_path %></p>
@@ -1,8 +0,0 @@
1
- <% title "New Index" %>
2
-
3
- <%= form_for @index, :html => { :multipart => true } do |f| %>
4
- <p><%= f.submit %></p>
5
- <%= render :partial => 'form', :locals => {:f => f, :index => @index} %>
6
- <p><%= f.submit %></p>
7
- <% end %>
8
- <p><%= link_to "Back to List", indices_path %></p>
@@ -1,4 +0,0 @@
1
- <%= render :partial => 'application/inline_nav', :locals => {:indices => @index.indices} %>
2
- <div id='ajax_content'>
3
- <%= render :partial => 'indices/show', :object => @index, :as => :index %>
4
- </div>
@@ -1 +0,0 @@
1
- $("#ajax_content").html("<%= escape_javascript(render :partial => 'show') %>");
@@ -1,27 +0,0 @@
1
- <% alignment ||= local_assigns[:locals][:alignment] %>
2
- <% f ||= local_assigns[:locals][:f] %>
3
- <div id='<%= f.object.id.to_s %>'>
4
- <% if f.object.asset_file_name %>
5
- <%= image_tag f.object.asset.url(:thumb), :width => "100" %>
6
- <% end %>
7
- <p>
8
- <%= f.label :name, "Photo Title" %><br />
9
- <%= f.text_field :name %>
10
- </p>
11
- <p>
12
- <%= f.label "Photo" %><br />
13
- <%= f.file_field :asset, :required => (f.object.asset_file_name.blank? ? true : false) %>
14
- </p>
15
-
16
- <p>
17
- <%= f.label :description, "Photo Description" %><br />
18
- <%= f.text_area :description, :size => "70x3" %>
19
- </p>
20
- <p>
21
- <%= f.label :klass, "Alignment" %><br />
22
- <%= f.radio_button :klass, 'left' %> Left
23
- <%= f.radio_button :klass, 'center', :checked => true %> Center
24
- <%= f.radio_button :klass, 'right' %> Right
25
- </p>
26
- <%= render "shared/prioritizable_fields", :locals => {:f => f} %>
27
- </div>
@@ -1,14 +0,0 @@
1
- <div class="<%=photo.klass%>">
2
- <%= link_to image_tag(photo.asset.url(photo.which?), :alt => photo.name, :class => "tooltipped button"), photo, :rel=>"#overlay", :class => "overlayed" %>
3
- <span class='tooltip'>
4
- <em></em>
5
- <h3><%= photo.name.titleize %></h3>
6
- <p><%= photo.description %></p>
7
- </span>
8
- <% if admin_signed_in? %>
9
- <p class='asset-admin'>
10
- <%= link_to "Remove Photo", photo, :confirm => 'Are you sure?', :method => :delete %>
11
- <%= link_to "Edit Photo", edit_photo_path(photo), :rel=>"#overlay", :class => "overlayed" %>
12
- </p>
13
- <% end %>
14
- </div>
@@ -1,4 +0,0 @@
1
- <%= form_for @photo, :html => { :multipart => true, :class => "validate", :novalidate => "novalidate" } do |f| %>
2
- <%= render :partial => 'form', :locals => {:f => f, :alignment => true} %>
3
- <%= f.submit%>
4
- <% end %>
@@ -1,27 +0,0 @@
1
- <% title "Photos" %>
2
-
3
- <table>
4
- <tr>
5
- <th>Title</th>
6
- <th>Photo File Name</th>
7
- <th>Photo Content Type</th>
8
- <th>Photo File Size</th>
9
- <th>Owner</th>
10
- <th>Owner Type</th>
11
- </tr>
12
- <% for photo in @photos %>
13
- <tr>
14
- <td><%=h photo.title %></td>
15
- <td><%=h photo.photo_file_name %></td>
16
- <td><%=h photo.photo_content_type %></td>
17
- <td><%=h photo.photo_file_size %></td>
18
- <td><%=h photo.owner_id %></td>
19
- <td><%=h photo.owner_type %></td>
20
- <td><%= link_to "Show", photo %></td>
21
- <td><%= link_to "Edit", edit_photo_path(photo) %></td>
22
- <td><%= link_to "Destroy", photo, :confirm => 'Are you sure?', :method => :delete %></td>
23
- </tr>
24
- <% end %>
25
- </table>
26
-
27
- <p><%= link_to "New Photo", new_photo_path %></p>
@@ -1,6 +0,0 @@
1
- <%= form_for @index, :html => { :multipart => true, :class => "validate", :novalidate => "novalidate" } do |f| %>
2
- <%= f.fields_for :photos, @photo do |photo_form| %>
3
- <%= render "photos/form", :locals => {:f => photo_form} %>
4
- <% end %>
5
- <p><%= f.submit %></p>
6
- <% end %>
@@ -1 +0,0 @@
1
- <%= image_tag(@photo.asset.url, :alt => @photo.title) %>
@@ -1,5 +0,0 @@
1
- <div class='center'>
2
- <%= image_tag(@photo.asset.url, :alt => @photo.name) %>
3
- <h3><%= @photo.name.titleize %></h3>
4
- <p><%= @photo.description %></p>
5
- </div>
@@ -1 +0,0 @@
1
- <%= render :partial => "#{asset.class.to_s.downcase.pluralize}/show", :locals => {asset.class.to_s.downcase.to_sym => asset}%>
@@ -1,21 +0,0 @@
1
- <div id='gallery' class='clearfix corner-all box_shadow'>
2
- <div id="gallery_wrap" class='clearfix'>
3
- <a class="<%= 'no_back ' unless (objs.size > 1) %>backward browse left"></a>
4
- <div id="gallery_wrap_inner" class="left"></div>
5
- <a class="<%= 'no_back ' unless (objs.size > 1) %>forward browse right"></a>
6
- </div>
7
- <div class="scroll_nav">
8
- <a class="<%= 'no_back ' unless (objs.size > 4) %>prev browse left"></a>
9
-
10
- <div class="scrollable corner-all nav">
11
- <div class="items ajax-nav">
12
- <% objs.each_with_index do |obj, index| %>
13
- <%= '<div>' if index%4 == 0 %>
14
- <%= link_to image_tag(obj.thumb, :alt => obj.name), obj, :id => obj.id, :class => "button#{' current' if obj.id == objs.first.id}" %>
15
- <%= '</div>' if (index%4 == 3 || index == objs.size-1) %>
16
- <% end %>
17
- </div>
18
- </div>
19
- <a class="<%= 'no_back ' unless (objs.size > 4) %>next browse right"></a>
20
- </div>
21
- </div>
@@ -1,10 +0,0 @@
1
- <% f ||= local_assigns[:locals][:f] %>
2
- <% if(f.object.prioritizables.empty? rescue true) %>
3
- <%= f.hidden_field :priority %>
4
- <% else %>
5
- <p>
6
- <%= f.label "#{f.object.class.to_s} Priority" %><br />
7
- <% i=0 %>
8
- <%= f.select :priority, options_for_select(f.object.prioritizables.map{|p| [(i+=1).ordinalize, p.priority]} + [['Last',f.object.lowest_priority+1]], f.object.priority) %>
9
- </p>
10
- <% end %>
@@ -1,16 +0,0 @@
1
- <% render_seo @index if @index %>
2
-
3
- <% content_for :pre_content do %>
4
- <div id="course_nav" class='course_nav content no_back'>
5
- <div id='course_nav_inner' class='nav inline_nav corner-all box-shadow'>
6
- <a style="display:none" href="#"></a>
7
- <% for course in @courses %>
8
- <%= link_to course.name, course, :class => 'button corner-all' %>
9
- <% end %>
10
- </div>
11
- </div>
12
- <% end %>
13
-
14
- <div id='ajax_content'>
15
- <%= render :partial => 'indices/index' if @index %>
16
- </div>
@@ -1,9 +0,0 @@
1
- <% f ||= local_assigns[:locals][:f] %>
2
- <div id='<%= f.object.id.to_s %>' class="section">
3
- <p>
4
- <%= f.label :content %><br />
5
- <%= f.text_area :content, {:class => "mceEditor", :id => 'mceEditor', :size => '100x1'} %>
6
- </p>
7
- <%= render "shared/prioritizable_fields", :locals => {:f => f} %>
8
- </div>
9
- <br />
@@ -1,6 +0,0 @@
1
- <%= form_for @index, :html => { :multipart => true } do |f| %>
2
- <%= f.fields_for :texts, @text do |text_form| %>
3
- <%= render "texts/form", :locals => {:f => text_form} %>
4
- <% end %>
5
- <p><%= f.submit %></p>
6
- <% end %>
@@ -1,9 +0,0 @@
1
- <div>
2
- <%= raw text.content %>
3
- <% if admin_signed_in? %>
4
- <p class='asset-admin'>
5
- <%= link_to "Edit Text", edit_text_path(text), :rel=>"#overlay", :class => "overlayed" %>
6
- <%= link_to "Remove Text", text, :confirm => 'Are you sure?', :method => :delete %>
7
- </p>
8
- <% end %>
9
- </div>
@@ -1,4 +0,0 @@
1
- <%= form_for @text, :html => { :multipart => true, :class => "validate", :novalidate => "novalidate" } do |f| %>
2
- <%= render "texts/form", :locals => {:f => f} %>
3
- <p><%= f.submit %></p>
4
- <% end %>
@@ -1,6 +0,0 @@
1
- <%= form_for @index, :html => { :multipart => true, :class => "validate", :novalidate => "novalidate" } do |f| %>
2
- <%= f.fields_for :texts, @text do |text_form| %>
3
- <%= render "texts/form", :locals => {:f => text_form} %>
4
- <% end %>
5
- <p><%= f.submit %></p>
6
- <% end %>
@@ -1,9 +0,0 @@
1
- <p>
2
- <strong>Content:</strong>
3
- <%=h @text.content %>
4
- </p>
5
- <p>
6
- <%= link_to "Edit", edit_text_path(@text) %> |
7
- <%= link_to "Destroy", @text, :confirm => 'Are you sure?', :method => :delete %> |
8
- <%= link_to "View All", texts_path %>
9
- </p>
@@ -1,17 +0,0 @@
1
- <% f ||= local_assigns[:locals][:f] %>
2
- <div id='<%= f.object.id.to_s %>'>
3
- <p>
4
- <%= f.label :name %><br />
5
- <%= f.text_field :name, :required => true %>
6
- </p>
7
- <p>
8
- <%= f.label :description %><br />
9
- <%= f.text_field :description %>
10
- </p>
11
- <p>
12
- <%= f.hidden_field :remote_type, {:value => "Youtube"} %>
13
- <%= f.label "Youtube ID" %><br />
14
- <%= f.text_field :remote_id, :required => true %>
15
- </p>
16
- <%= render "shared/prioritizable_fields", :locals => {:f => f} %>
17
- </div>
@@ -1,16 +0,0 @@
1
- <div class='center'>
2
- <%= "<h3>#{video.name}</h3>" unless video.name.blank? %>
3
- <object width="520" height="390" align="c">
4
- <param name="movie" value="<%= video.url %>" />
5
- <param name="allowFullScreen" value="true" />
6
- <param name="allowscriptaccess" value="always" />
7
- <embed src="<%= video.url %>" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="520" height="390"></embed>
8
- </object>
9
- <%= "<p>By: #{video.description}</p>" unless video.description.blank? %>
10
- <% if admin_signed_in? %>
11
- <p class='asset-admin'>
12
- <%= link_to "Remove Video", video, :confirm => 'Are you sure?', :method => :delete %>
13
- <%= link_to "Edit Video", edit_video_path(video), :rel=>"#overlay", :class => "overlayed" %>
14
- </p>
15
- <% end %>
16
- </div>
@@ -1,4 +0,0 @@
1
- <%= form_for @photo, :html => { :multipart => true, :class => "validate", :novalidate => "novalidate" } do |f| %>
2
- <%= render :partial => 'form', :locals => {:f => f} %>
3
- <%= f.submit %>
4
- <% end %>
@@ -1,17 +0,0 @@
1
- <% title "Videos" %>
2
-
3
- <table>
4
- <tr>
5
- <th>Name</th>
6
- </tr>
7
- <% for video in @videos %>
8
- <tr>
9
- <td><%=h video.name %></td>
10
- <td><%= link_to "Show", video %></td>
11
- <td><%= link_to "Edit", edit_video_path(video) %></td>
12
- <td><%= link_to "Destroy", video, :confirm => 'Are you sure?', :method => :delete %></td>
13
- </tr>
14
- <% end %>
15
- </table>
16
-
17
- <p><%= link_to "New Video", new_video_path %></p>