adds minimum decency styling

This commit is contained in:
rgarcia
2015-07-18 21:29:39 +02:00
parent 2bd2ceaf59
commit 580eda9621
3 changed files with 23 additions and 19 deletions

View File

@@ -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.description %></p>
<p>
Creado el: <%= l @debate.created_at.to_date %>
por: <%= @debate.author.name %>
</p>
</div>
</span>
<div>
<span style="width:30%;float:left">
<div id='in_favor'>
<%= link_to "up", debate_votes_path(@debate, value: 'yes'), method: "post" %>
<%= percentage('likes', @debate) %>
@@ -19,20 +19,22 @@
</div>
Votos <%= @debate.total_votes %>
</span>
<div style="display: block; width:300px">
<%= render 'shared/tags', debate: @debate %>
</div>
<br/><br/>
<%= render 'shared/tags', debate: @debate %>
<br/><br/>
Deja tu comentario
<%= render 'comments/form', parent: @debate %>
<div id="comments" style="padding-top:20px">
<h2>Comentarios</h2>
<%= render @debate.root_comments %>
</div>
Deja tu comentario
<%= render 'comments/form', parent: @debate %>
<br/><br/>
<%= link_to 'Edit', edit_debate_path(@debate) %> |
<%= link_to 'Back', debates_path %>

View File

@@ -1,9 +1,11 @@
<% if user_signed_in? %>
<div style="float:right; margin-right:50px">
<% if user_signed_in? %>
<li>
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
</li>
<% else %>
<% else %>
<li>
<%= link_to('Login', new_user_session_path) %>
</li>
<% end %>
<% end %>
</div>

View File

@@ -11,7 +11,7 @@
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body style="margin-left:50px">
<body style="margin:50px">
<p class="alert"><%= notice %></p>
<p class="alert"><%= alert %></p>