diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index ab4d567..4ab36a6 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -519,6 +519,24 @@ div.markdown_help_label {
line-height: 2em;
}
+
+div#story_box input#story_url {
+ width: 506px;
+}
+div#story_box input#story_title {
+ width: 600px;
+}
+div#story_box #story_tags_a {
+ width: 624px;
+}
+div#story_box textarea {
+ width: 600px;
+}
+div#story_box div.markdown_help_toggler {
+ margin-left: 7em;
+ width: 610px;
+}
+
/* data tables */
table.data caption {
diff --git a/app/models/story.rb b/app/models/story.rb
index d4afe3d..72539c4 100644
--- a/app/models/story.rb
+++ b/app/models/story.rb
@@ -80,7 +80,7 @@ class Story < ActiveRecord::Base
end
def comments_url
- "http://lobste.rs/p/#{self.short_id}/#{self.title_as_url}"
+ "/p/#{self.short_id}/#{self.title_as_url}"
end
@_comment_count = nil
diff --git a/app/views/stories/_form.html.erb b/app/views/stories/_form.html.erb
index b7be0ea..3b08ca8 100644
--- a/app/views/stories/_form.html.erb
+++ b/app/views/stories/_form.html.erb
@@ -9,7 +9,7 @@
<% elsif !f.object.id %>
<%= f.label :url, "URL:", :class => "required" %>
- <%= f.text_field :url, :style => "width: 475px;" %>
+ <%= f.text_field :url %>
<%= button_to_function "Fetch Title",
"Lobsters.fetchURLTitle($(this), $('#story_url'), $('#story_title'));" %>
<% end %>
@@ -17,7 +17,7 @@
<%= f.label :title, "Title:", :class => "required" %>
- <%= f.text_field :title, :maxlength => 100, :style => "width: 475px;" %>
+ <%= f.text_field :title, :maxlength => 100 %>
@@ -25,14 +25,12 @@
:style => "line-height: 2.3em;" %>
<%= f.select "tags_a", Tag.order(:tag).map{|t|
[ "#{t.tag} - #{t.description}", t.tag ] }, {},
- { :multiple => true, :style => "width: 487px;" } %>
+ { :multiple => true } %>
<%= f.label :description, "Text:", :class => "required" %>
- <%= f.text_area :description, :size => "100x10",
- :placeholder => "optional, not recommended when submitting a link" %>
+ <%= f.text_area :description, :rows => 15,
+ :placeholder => "optional when submitting a link" %>
-
- <%= render :partial => "global/markdownhelp" %>
diff --git a/app/views/stories/edit.html.erb b/app/views/stories/edit.html.erb
index 7441763..284ec68 100644
--- a/app/views/stories/edit.html.erb
+++ b/app/views/stories/edit.html.erb
@@ -1,4 +1,4 @@
-
+
Edit Story
@@ -9,9 +9,20 @@
:f => f } %>
+
- <%= submit_tag "Save" %>
- or
cancel editing
+
+
+ Limited Markdown formatting available
+
+
+ <%= submit_tag "Save" %>
+ or
cancel editing
+
+
+
+ <%= render :partial => "global/markdownhelp" %>
+
<% end %>
diff --git a/app/views/stories/new.html.erb b/app/views/stories/new.html.erb
index 022bd4d..9ab5cfe 100644
--- a/app/views/stories/new.html.erb
+++ b/app/views/stories/new.html.erb
@@ -1,4 +1,4 @@
-
+
Submit a Story
@@ -8,8 +8,19 @@
:f => f } %>
+
- <%= submit_tag "Submit" %>
+
+
+ Limited Markdown formatting available
+
+
+ <%= submit_tag "Submit" %>
+
+
+
+ <%= render :partial => "global/markdownhelp" %>
+
<% end %>