summaryrefslogtreecommitdiff
path: root/app/views/tutorials
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-08-27 20:41:25 -0600
committermo khan <mo@mokhan.ca>2014-08-27 20:41:25 -0600
commitc6324be510fea95ff6af956fc5b93e59672d0eae (patch)
tree3f7faee2716bd2a77ecfe2fe3c11650497a6d80b /app/views/tutorials
parent227882b0758c7918537cbdb7c49ad8fcf09d6ae5 (diff)
remove old tutorial actions.
Diffstat (limited to 'app/views/tutorials')
-rw-r--r--app/views/tutorials/_form.html.erb55
-rw-r--r--app/views/tutorials/edit.html.erb5
-rw-r--r--app/views/tutorials/new.html.erb9
3 files changed, 0 insertions, 69 deletions
diff --git a/app/views/tutorials/_form.html.erb b/app/views/tutorials/_form.html.erb
deleted file mode 100644
index f6efd89d..00000000
--- a/app/views/tutorials/_form.html.erb
+++ /dev/null
@@ -1,55 +0,0 @@
-<% content_for :javascript do %>
-<script type="text/javascript" charset="utf-8">
-$(function(){
- var ready = function(){
- new TutorialForm().initialize($);
- var all_tags = [ <% ActsAsTaggableOn::Tag.all.map(&:name).each { |item| %> '<%= item %>', <% } %> ];
- $('#tags').tagit({ availableTags: all_tags });
- };
- $(document).ready(ready);
-});
-</script>
-<% end %>
-<div class="span12">
- <%= form_for(@tutorial, :html => {:class => "form-horizontal"}) do |f| %>
- <fieldset>
- <div class="control-group">
- <%= f.label :url, "Tutorial URL", :class => "control-label" %>
- <div class="controls">
- <%= f.text_field :url, :class => "input-xxlarge", :placeholder => "Enter the full website link and click outside this box" %>
- </div>
- </div>
- <div class="control-group">
- <label for="tags" class="control-label">Tags</label>
- <div class="controls">
- <input type="text" id="tags" name="tutorial_tags" value="" class="input-xxlarge" autocomplete="off" />
- <p class="help-block">
- Note: help people find this tutorial by adding some keyword tags
- </p>
- </div>
- </div>
- <div class="form-actions">
- <%= f.hidden_field :heading, :class => "input-xlarge, tutorial-heading" %>
- <%= f.hidden_field :author, :class => "input-xlarge, tutorial-author" %>
- <%= f.hidden_field :author_url, :class => "input-xlarge, tutorial-author-url" %>
- <%= f.hidden_field :description, :class => "input-xlarge, tutorial-description" %>
- <%= f.hidden_field :image_url %>
- <button type="submit" class="btn btn-primary">Save</button>
- <%= link_to "Cancel", tutorials_path, class: 'btn' %>
- </div>
- </fieldset>
- <% end %>
- <div class="controls">
- <p class="help-block">
- A preview will be shown below
- </p>
- </div>
- <div class="thumbnail">
- <img class="embed-thumb" src="" />
- <div class="caption">
- <h3 class="tutorial-heading"></h3>
- <p id="tag-list"></p>
- <p class="tutorial-description"></p>
- </div>
- </div>
-</div>
diff --git a/app/views/tutorials/edit.html.erb b/app/views/tutorials/edit.html.erb
deleted file mode 100644
index 513822fd..00000000
--- a/app/views/tutorials/edit.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<% provide(:title, "Edit tutorial") -%>
-<div class="row-fluid">
- <h1>Editing tutorial</h1>
- <%= render 'form' %>
-</div>
diff --git a/app/views/tutorials/new.html.erb b/app/views/tutorials/new.html.erb
deleted file mode 100644
index cae294e8..00000000
--- a/app/views/tutorials/new.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<% provide(:title, "Share a tutorial link") -%>
-<div class="row-fluid">
- <div class="span12">
- <h1>Share a tutorial link</h1>
- </div>
-</div>
-<div class="row-fluid">
- <%= render 'form' %>
-</div>