adds minimum decency styling
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<div id="debate-<%= @debate.id %>">
|
<span id="debate-<%= @debate.id %>" style="width:70%; float:left">
|
||||||
<p><%= @debate.title %></p>
|
<p><%= @debate.title %></p>
|
||||||
<p><%= @debate.description %></p>
|
<p><%= @debate.description %></p>
|
||||||
<p>
|
<p>
|
||||||
Creado el: <%= l @debate.created_at.to_date %>
|
Creado el: <%= l @debate.created_at.to_date %>
|
||||||
por: <%= @debate.author.name %>
|
por: <%= @debate.author.name %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</span>
|
||||||
|
|
||||||
<div>
|
<span style="width:30%;float:left">
|
||||||
<div id='in_favor'>
|
<div id='in_favor'>
|
||||||
<%= link_to "up", debate_votes_path(@debate, value: 'yes'), method: "post" %>
|
<%= link_to "up", debate_votes_path(@debate, value: 'yes'), method: "post" %>
|
||||||
<%= percentage('likes', @debate) %>
|
<%= percentage('likes', @debate) %>
|
||||||
@@ -19,20 +19,22 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
Votos <%= @debate.total_votes %>
|
Votos <%= @debate.total_votes %>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<div style="display: block; width:300px">
|
||||||
|
<%= render 'shared/tags', debate: @debate %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<%= render 'shared/tags', debate: @debate %>
|
|
||||||
|
|
||||||
<br/><br/>
|
|
||||||
Deja tu comentario
|
|
||||||
<%= render 'comments/form', parent: @debate %>
|
|
||||||
|
|
||||||
<div id="comments" style="padding-top:20px">
|
<div id="comments" style="padding-top:20px">
|
||||||
<h2>Comentarios</h2>
|
<h2>Comentarios</h2>
|
||||||
<%= render @debate.root_comments %>
|
<%= render @debate.root_comments %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Deja tu comentario
|
||||||
|
<%= render 'comments/form', parent: @debate %>
|
||||||
|
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<%= link_to 'Edit', edit_debate_path(@debate) %> |
|
<%= link_to 'Edit', edit_debate_path(@debate) %> |
|
||||||
<%= link_to 'Back', debates_path %>
|
<%= link_to 'Back', debates_path %>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<div style="float:right; margin-right:50px">
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
|
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
|
||||||
@@ -7,3 +8,4 @@
|
|||||||
<%= link_to('Login', new_user_session_path) %>
|
<%= link_to('Login', new_user_session_path) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
</head>
|
</head>
|
||||||
<body style="margin-left:50px">
|
<body style="margin:50px">
|
||||||
<p class="alert"><%= notice %></p>
|
<p class="alert"><%= notice %></p>
|
||||||
<p class="alert"><%= alert %></p>
|
<p class="alert"><%= alert %></p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user