Skip to content

Commit 48cd71e

Browse files
committed
fix for issue punerb#66
1 parent b40094a commit 48cd71e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

app/assets/stylesheets/application.css.sass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ input.span8, .uneditable-input.span8
5151
.row
5252
margin-left: 0px !important
5353

54+
.marTop5
55+
margin-top: 5px
56+
57+
.marTop10
58+
margin-top: 10px

app/models/idea.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Idea < ActiveRecord::Base
1313

1414
before_save :format_description
1515

16+
delegate :name, to: :user, prefix: true
17+
1618
def format_description
1719
self.description = RedCloth.new(original_desc, [:lite_mode]).to_html
1820
end

app/views/ideas/_idea.html.haml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
%h3= idea.title
2626
.modal-body
2727
%h6= idea.categories.collect(&:name).join(', ')
28-
%h5= link_to idea.github, idea.github, target: '_blank'
29-
%br/
28+
%h5
29+
Github URL:
30+
= link_to idea.github, idea.github, target: '_blank'
31+
%h5.marTop10
32+
Idea By:
33+
= idea.user_name
34+
%h5.marTop10
35+
Description
3036
%p= raw idea.description
3137
.modal-footer
3238
= participate_button(idea)

0 commit comments

Comments
 (0)