style fixes
This commit is contained in:
@@ -11,6 +11,7 @@ $(function() {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
$("#more-links").show();
|
||||
$("#more-links").position({
|
||||
of: $("#site-map-link"),
|
||||
my: "left top",
|
||||
|
||||
@@ -7,8 +7,8 @@ div.post-previews {
|
||||
article.post-preview {
|
||||
height: 150px;
|
||||
width: 150px;
|
||||
margin-right: 30px;
|
||||
margin-bottom: 30px;
|
||||
margin-right: 20px;
|
||||
margin-bottom: 20px;
|
||||
float: left;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
@@ -50,6 +50,8 @@ class UsersController < ApplicationController
|
||||
else
|
||||
UserMailer.upgrade(@user, params[:email]).deliver
|
||||
end
|
||||
|
||||
redirect_to user_path(@user), :notice => "Email was sent"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -57,10 +57,6 @@ class Comment < ActiveRecord::Base
|
||||
return vote
|
||||
end
|
||||
|
||||
def creator_name
|
||||
creator.name.tr("_", " ")
|
||||
end
|
||||
|
||||
def editable_by?(user)
|
||||
creator_id == user.id || user.is_moderator?
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="more-links">
|
||||
<div id="more-links" style="display: none;">
|
||||
<ul>
|
||||
<%= nav_link_to("Artists", artists_path(:order => "date")) %>
|
||||
<%= nav_link_to("Tags", tags_path(:order => "date")) %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="quick-edit-div">
|
||||
<div id="quick-edit-div" style="display: none;">
|
||||
<h1>Edit</h1>
|
||||
|
||||
<%= form_tag("/posts", :class => "simple_form", :method => :put, :id => "quick-edit-form") do %>
|
||||
|
||||
@@ -52,11 +52,11 @@
|
||||
<%= render "comments/partials/index/list", :comments => @post.comments, :post => @post, :show_header => false %>
|
||||
</section>
|
||||
|
||||
<section id="notes">
|
||||
<section id="notes" style="display: none;">
|
||||
<%= render :partial => "notes/note", :collection => @post.notes.active %>
|
||||
</section>
|
||||
|
||||
<section id="edit">
|
||||
<section id="edit" style="display: none;">
|
||||
<%= render "posts/partials/show/edit", :post => @post %>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user