Merge branch 'master' of github.com:diaspora/diaspora_rails

This commit is contained in:
Raphael 2010-07-01 20:05:03 -07:00
commit ed3c8f426f
8 changed files with 14 additions and 12 deletions

View file

@ -42,6 +42,6 @@ class BlogsController < ApplicationController
@blog = Blog.where(:id => params[:id]).first @blog = Blog.where(:id => params[:id]).first
@blog.destroy @blog.destroy
flash[:notice] = "Successfully destroyed blog." flash[:notice] = "Successfully destroyed blog."
redirect_to blogs_url redirect_to root_url
end end
end end

View file

@ -43,6 +43,6 @@ class BookmarksController < ApplicationController
@bookmark = Bookmark.first(:conditions => {:id => params[:id]}) @bookmark = Bookmark.first(:conditions => {:id => params[:id]})
@bookmark.destroy @bookmark.destroy
flash[:notice] = "Successfully destroyed bookmark." flash[:notice] = "Successfully destroyed bookmark."
redirect_to bookmarks_url redirect_to root_url
end end
end end

View file

@ -33,7 +33,7 @@ class StatusMessagesController < ApplicationController
@status_message = StatusMessage.where(:id => params[:id]).first @status_message = StatusMessage.where(:id => params[:id]).first
@status_message.destroy @status_message.destroy
flash[:notice] = "Successfully destroyed status message." flash[:notice] = "Successfully destroyed status message."
redirect_to status_messages_url redirect_to root_url
end end
def show def show

View file

@ -14,4 +14,4 @@
- if mine?(post) - if mine?(post)
.destroy_link .destroy_link
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete = link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete

View file

@ -15,4 +15,4 @@
- if mine?(post) - if mine?(post)
.destroy_link .destroy_link
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete = link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete

View file

@ -19,11 +19,10 @@
= javascript_include_tag 'satisfaction' , 'satisfaction-display' = javascript_include_tag 'satisfaction' , 'satisfaction-display'
%body %body
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
%header %header
.container .container
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
%a#diaspora_text{:href => root_path} %a#diaspora_text{:href => root_path}
%img{:src => '/images/diaspora_white.png'} %img{:src => '/images/diaspora_white.png'}
preview preview

View file

@ -11,12 +11,13 @@ a {
#flash_error, #flash_error,
#flash_alert { #flash_alert {
z-index: 60; z-index: 60;
position: fixed; position: absolute;
padding: 5px 8px; padding: 5px 8px;
margin: 0; margin: 0;
width: 400px; width: 400px;
top: 0px; top: 0px;
left: 200px; } margin-left: 230px;
color: #666666; }
#flash_notice { #flash_notice {
background-color: #ccffcc; background-color: #ccffcc;

View file

@ -11,12 +11,14 @@ a
#flash_error, #flash_error,
#flash_alert #flash_alert
:z-index 60 :z-index 60
:position fixed :position absolute
:padding 5px 8px :padding 5px 8px
:margin 0 :margin 0
:width 400px :width 400px
:top 0px :top 0px
:left 200px :margin
:left 230px
:color #666
#flash_notice #flash_notice
:background-color #CFC :background-color #CFC