style fixes

This commit is contained in:
albert
2011-12-06 18:58:26 -05:00
parent 4baf5be7a2
commit 8e3a6c5923
9 changed files with 22 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ $(function() {
e.stopPropagation();
});
$("#more-links").show();
$("#more-links").position({
of: $("#site-map-link"),
my: "left top",

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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")) %>

View File

@@ -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 %>

View File

@@ -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>