sbdevcore 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/28DaysLater.ttf +0 -0
- data/app/assets/images/ajax-loader.gif +0 -0
- data/app/assets/javascripts/jquery.tools.min.js +16 -108
- data/app/assets/javascripts/rails.validations.custom.js +5 -0
- data/app/assets/javascripts/sbdev-ajax.js +14 -0
- data/app/assets/javascripts/sbdevcore-tools.js +24 -37
- data/app/assets/javascripts/sbdevcore.js +8 -3
- data/app/assets/javascripts/tiny_mce_config.js +2 -0
- data/app/assets/stylesheets/_bar_nav.scss +6 -4
- data/app/assets/stylesheets/_buttons.scss +16 -10
- data/app/assets/stylesheets/_forms.scss +51 -0
- data/app/assets/stylesheets/_mixins.scss +40 -15
- data/app/assets/stylesheets/_overlay.scss +4 -7
- data/app/assets/stylesheets/_sbdev_core.scss +55 -19
- data/app/assets/stylesheets/_yui_base.scss +142 -0
- data/app/controllers/contacts_controller.rb +2 -36
- data/app/controllers/downloadables_controller.rb +6 -46
- data/app/controllers/galleries_controller.rb +4 -49
- data/app/controllers/indices_controller.rb +2 -45
- data/app/controllers/photos_controller.rb +4 -48
- data/app/controllers/sbdev_core_controller.rb +40 -0
- data/app/controllers/texts_controller.rb +3 -46
- data/app/controllers/videos_controller.rb +4 -45
- data/app/models/contact.rb +5 -1
- data/app/models/downloadable.rb +3 -1
- data/app/models/index.rb +4 -1
- data/app/models/photo.rb +3 -1
- data/app/models/video.rb +2 -0
- data/app/views/admins/mailer/confirmation_instructions.html.haml +4 -0
- data/app/views/admins/mailer/reset_password_instructions.html.haml +6 -0
- data/app/views/admins/mailer/unlock_instructions.html.haml +5 -0
- data/app/views/admins/passwords/edit.html.haml +8 -0
- data/app/views/admins/passwords/new.html.haml +6 -0
- data/app/views/admins/sessions/new.html.haml +8 -0
- data/app/views/admins/shared/_links.haml +19 -0
- data/app/views/application/_header.html.haml +1 -0
- data/app/views/application/_secondary_nav.html.haml +3 -0
- data/app/views/contacts/_form.html.haml +5 -0
- data/app/views/contacts/edit.html.haml +6 -0
- data/app/views/contacts/index.html.haml +21 -0
- data/app/views/contacts/new.html.haml +2 -0
- data/app/views/contacts/show.html.haml +24 -0
- data/app/views/downloadables/_form.html.haml +6 -0
- data/app/views/downloadables/_show.html.haml +7 -0
- data/app/views/downloadables/edit.html.haml +3 -0
- data/app/views/downloadables/new.html.haml +4 -0
- data/app/views/galleries/_form.html.haml +22 -0
- data/app/views/galleries/edit.html.haml +10 -0
- data/app/views/galleries/index.html.haml +9 -0
- data/app/views/galleries/new.html.haml +3 -0
- data/app/views/galleries/show.html.haml +9 -0
- data/app/views/indices/_form.html.haml +43 -0
- data/app/views/indices/_show.html.haml +17 -0
- data/app/views/indices/edit.html.haml +3 -0
- data/app/views/indices/index.html.haml +17 -0
- data/app/views/layouts/application.html.haml +16 -1
- data/app/views/layouts/bar_nav.html.haml +7 -14
- data/app/views/layouts/sbdev_core.html.haml +39 -0
- data/app/views/layouts/tab_nav.html.haml +9 -14
- data/app/views/mailer/message.haml +4 -0
- data/app/views/photos/_form.html.haml +10 -0
- data/app/views/photos/_show.html.haml +7 -0
- data/app/views/photos/edit.html.haml +3 -0
- data/app/views/photos/index.html.haml +21 -0
- data/app/views/photos/new.html.haml +4 -0
- data/app/views/photos/show.html.haml +4 -0
- data/app/views/sbdev_core/index.html.haml +1 -0
- data/app/views/sbdev_core/show.html.haml +4 -0
- data/app/views/sbdev_core/show.js.haml +1 -0
- data/app/views/shared/_asset_show.html.haml +1 -0
- data/app/views/shared/_devise_links.haml +15 -0
- data/app/views/shared/_gallery.html.haml +14 -0
- data/app/views/shared/_prioritizable_fields.html.haml +5 -0
- data/app/views/texts/_form.html.haml +3 -0
- data/app/views/texts/_show.html.haml +6 -0
- data/app/views/texts/edit.html.haml +3 -0
- data/app/views/texts/new.html.haml +4 -0
- data/app/views/texts/show.html.haml +8 -0
- data/app/views/videos/_form.html.haml +7 -0
- data/app/views/videos/_show.html.haml +12 -0
- data/app/views/videos/edit.html.haml +3 -0
- data/app/views/videos/index.html.haml +11 -0
- data/app/views/videos/new.html.haml +4 -0
- data/app/views/videos/show.html.haml +9 -0
- data/app/views/videos/show.js.haml +4 -0
- data/config/initializers/client_side_validations.rb +14 -0
- data/config/initializers/custom_validators.rb +15 -0
- data/config/initializers/load_app_config.rb +2 -0
- data/config/initializers/simple_form.rb +93 -0
- data/config/locales/en.yml +4 -1
- data/db/migrate/20110811000613_create_indices.rb +3 -0
- data/db/seeds.rb +23 -57
- data/lib/generators/sbdevcore/install_generator.rb +0 -2
- data/lib/generators/sbdevcore/templates/application.scss +1 -0
- data/lib/generators/sbdevcore/templates/application/_404.html.haml +2 -0
- data/lib/generators/sbdevcore/templates/application/_footer.html.haml +2 -1
- data/lib/generators/sbdevcore/templates/application/_inline_nav.html.haml +3 -0
- data/lib/generators/sbdevcore/templates/application/_nav.html.haml +1 -1
- data/lib/generators/sbdevcore/templates/config/initializers/mailer_setup.rb +2 -2
- data/lib/generators/sbdevcore/templates/config/initializers/simple_form.rb +93 -0
- data/lib/generators/sbdevcore/templates/new_contact.html.haml +4 -0
- data/lib/sbdevcore.rb +25 -2
- data/lib/sbdevcore/engine.rb +13 -34
- data/lib/sbdevcore/version.rb +1 -1
- data/lib/tasks/sbdevcore.rake +1 -1
- data/public/404.html +2 -2
- data/sbdevcore.gemspec +7 -2
- metadata +296 -156
- data/app/assets/stylesheets/_js_errors.scss +0 -26
- data/app/controllers/core_controller.rb +0 -5
- data/app/controllers/sbdevcore/application_controller_extensions.rb +0 -13
- data/app/controllers/statics_controller.rb +0 -6
- data/app/models/asset.rb +0 -27
- data/app/views/admins/confirmations/new.html.erb +0 -12
- data/app/views/admins/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/admins/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/admins/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/admins/passwords/edit.html.erb +0 -16
- data/app/views/admins/passwords/new.html.erb +0 -12
- data/app/views/admins/registrations/edit.html.erb +0 -25
- data/app/views/admins/registrations/new.html.erb +0 -18
- data/app/views/admins/sessions/new.html.erb +0 -17
- data/app/views/admins/unlocks/new.html.erb +0 -12
- data/app/views/contacts/_form.html.erb +0 -18
- data/app/views/contacts/edit.html.erb +0 -8
- data/app/views/contacts/index.html.erb +0 -27
- data/app/views/contacts/new.html.erb +0 -4
- data/app/views/contacts/show.html.erb +0 -32
- data/app/views/downloadables/_form.html.erb +0 -17
- data/app/views/downloadables/_show.html.erb +0 -8
- data/app/views/downloadables/edit.html.erb +0 -4
- data/app/views/downloadables/new.html.erb +0 -6
- data/app/views/galleries/_form.html.erb +0 -33
- data/app/views/galleries/edit.html.erb +0 -13
- data/app/views/galleries/index.html.erb +0 -16
- data/app/views/galleries/new.html.erb +0 -8
- data/app/views/galleries/show.html.erb +0 -17
- data/app/views/indices/_form.html.erb +0 -60
- data/app/views/indices/_show.html.erb +0 -22
- data/app/views/indices/edit.html.erb +0 -12
- data/app/views/indices/index.html.erb +0 -23
- data/app/views/indices/new.html.erb +0 -8
- data/app/views/indices/show.html.erb +0 -4
- data/app/views/indices/show.js.erb +0 -1
- data/app/views/photos/_form.html.erb +0 -27
- data/app/views/photos/_show.html.erb +0 -14
- data/app/views/photos/edit.html.erb +0 -4
- data/app/views/photos/index.html.erb +0 -27
- data/app/views/photos/new.html.erb +0 -6
- data/app/views/photos/overlay.html.erb +0 -1
- data/app/views/photos/show.html.erb +0 -5
- data/app/views/shared/_asset_show.html.erb +0 -1
- data/app/views/shared/_gallery.html.erb +0 -21
- data/app/views/shared/_prioritizable_fields.html.erb +0 -10
- data/app/views/shared/course_type_index.html.erb +0 -16
- data/app/views/texts/_form.html.erb +0 -9
- data/app/views/texts/_new.html.erb +0 -6
- data/app/views/texts/_show.html.erb +0 -9
- data/app/views/texts/edit.html.erb +0 -4
- data/app/views/texts/new.html.erb +0 -6
- data/app/views/texts/show.html.erb +0 -9
- data/app/views/videos/_form.html.erb +0 -17
- data/app/views/videos/_show.html.erb +0 -16
- data/app/views/videos/edit.html.erb +0 -4
- data/app/views/videos/index.html.erb +0 -17
- data/app/views/videos/new.html.erb +0 -6
- data/app/views/videos/show.html.erb +0 -12
- data/lib/generators/sbdevcore/templates/application/_404.html.erb +0 -2
- data/lib/generators/sbdevcore/templates/application/_inline_nav.html.erb +0 -7
- data/lib/generators/sbdevcore/templates/config/tiny_mce.yml +0 -46
- data/lib/generators/sbdevcore/templates/new_contact.html.erb +0 -4
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/plugins/.gitkeep +0 -0
@@ -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 +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,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 +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,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,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,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,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>
|