Commit 7ea1c2de150ba3135ba5ccfcb2ebadc574b84903
1 parent
0e46fe33
Exists in
master
and in
11 other branches
proposals_discussion: improve proposal layout
Showing
3 changed files
with
10 additions
and
4 deletions
Show diff stats
651 Bytes
public/style.css
| @@ -143,12 +143,14 @@ form .proposals-discussion-plugin .body textarea { | @@ -143,12 +143,14 @@ form .proposals-discussion-plugin .body textarea { | ||
| 143 | background-color: #7293CF; | 143 | background-color: #7293CF; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | -#content .topic-item h2, #article .article-body-proposals-discussion-plugin_topic h2 { | 146 | +#content .topic-item h2, #article .article-body-proposals-discussion-plugin_topic h2, |
| 147 | +#content .topic h2 { | ||
| 147 | background-color: #C4C4C4; | 148 | background-color: #C4C4C4; |
| 148 | margin: 0; | 149 | margin: 0; |
| 149 | } | 150 | } |
| 150 | 151 | ||
| 151 | -#content .topic-item h2 a, #article .article-body-proposals-discussion-plugin_topic h2 a { | 152 | +#content .topic-item h2 a, #article .article-body-proposals-discussion-plugin_topic h2 a, |
| 153 | +#content .topic h2 a { | ||
| 152 | text-decoration: none; | 154 | text-decoration: none; |
| 153 | padding: 10px; | 155 | padding: 10px; |
| 154 | display: inline-block; | 156 | display: inline-block; |
views/content_viewer/proposal.html.erb
| 1 | +<div class="discussion"> | ||
| 2 | + <h5><%= @page.topic.discussion.title %> </h5> | ||
| 3 | +</div> | ||
| 4 | + | ||
| 1 | <div class="topic"> | 5 | <div class="topic"> |
| 2 | - <h5><%= _('Discussion Topic') %></h5> | ||
| 3 | - <div class="content"><%= @page.topic.title %></div> | 6 | + <div class="topic-color" style="background-color: <%= @page.topic.color %>;"></div> |
| 7 | + <h2><%= link_to @page.topic.title, @page.topic.view_url %></h2> | ||
| 4 | </div> | 8 | </div> |
| 5 | 9 | ||
| 6 | <div class="title"> | 10 | <div class="title"> |