Commit 4ca5ae03

luuduong <luuduong@gmail.com>
2013-02-23 04:55:44
changes to labels and styles and also updated gemfile for an error I was getting
1 parent 5913bad
Changed files (5)
app/assets/stylesheets/custom.css.scss
@@ -126,3 +126,8 @@ footer #footer-floor {
     }
   }
 }
+
+ul.tagit {
+    margin-left: 0px; /* force it to show up left aligned */
+
+}
app/views/tutorials/_form.html.erb
@@ -15,12 +15,17 @@ $(function(){
       <div class="control-group">
         <%= f.label :url, :class => "control-label" %>
         <div class="controls">
-          <%= f.text_field :url, :class => "input-xlarge" %>
+          <%= 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>
-        <input type="text" id="tags" name="tutorial_tags" value="" class="input-xxlarge" autocomplete="off" />
+          <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" %>
@@ -28,11 +33,16 @@ $(function(){
         <%= 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 changes</button>
+        <button type="submit" class="btn btn-primary">Save</button>
         <a href="<%= url_for tutorials_url %>" class="btn">Cancel</a>
       </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">
app/views/tutorials/new.html.erb
@@ -1,6 +1,6 @@
-<% provide(:title, "Share a tutorial") -%>
+<% provide(:title, "Share a tutorial link") -%>
 <% content_for :page_header do -%>
-  <h1>Share a new tutorial</h1>
+  <h1>Share a tutorial link</h1>
 <% end -%>
 <div class="row">
   <div class="span3">
Gemfile
@@ -17,6 +17,7 @@ gem 'acts-as-taggable-on'
 gem 'delayed_job_active_record'
 gem 'daemons'
 gem 'jquery-fileupload-rails'
+gem 'exception_notification', :require => 'exception_notifier'
 
 group :development, :test do
   gem 'pg'
Gemfile.lock
@@ -104,6 +104,8 @@ GEM
       warden (~> 1.2.1)
     diff-lcs (1.1.3)
     erubis (2.7.0)
+    exception_notification (3.0.1)
+      actionmailer (>= 3.0.4)
     excon (0.6.6)
     execjs (1.4.0)
       multi_json (~> 1.0)
@@ -283,6 +285,7 @@ DEPENDENCIES
   daemons
   delayed_job_active_record
   devise
+  exception_notification
   factory_girl_rails
   fakes-rspec
   fog