identity,servers view

This commit is contained in:
Wojciech Todryk 2011-09-30 01:14:41 +02:00
parent ef0b894ad8
commit e96e11db96
3 changed files with 6 additions and 3 deletions

View file

@ -208,6 +208,7 @@ class MessagesOpsController < ApplicationController
@current_user.email, @current_user.email,
params[:message][:to_addr] params[:message][:to_addr]
) )
@mailbox.append(@sent_folder.full_name,@mail.to_s,[:Seen])
upload_dir = $defaults["msg_upload_dir"] upload_dir = $defaults["msg_upload_dir"]
@attachments.each do |file| @attachments.each do |file|
path = File.join(upload_dir, @current_user.username + "_" + file[:name]) path = File.join(upload_dir, @current_user.username + "_" + file[:name])

View file

@ -26,7 +26,9 @@ module Mailr
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)' config.time_zone = 'Warsaw'
#FIXME time zone move to config
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]

View file

@ -1,7 +1,7 @@
<div class="image"> <div class="image">
<%= image_tag(messages_attachment_download_path(image.parent_id,image.idx), :size => @current_user.prefs.msg_image_thumbnail_size, :alt=>image.filename, :title=>image.filename) %> <%= image_tag(attachment_download_path(image.parent_id,image.idx), :size => @current_user.prefs.msg_image_thumbnail_size, :alt=>image.filename, :title=>image.filename) %>
<div class="desc"> <div class="desc">
<span class="name"><%= link_to (image.filename,messages_attachment_download_path(image.parent_id,image.idx)) %></span> <span class="name"><%= link_to (image.filename,attachment_download_path(image.parent_id,image.idx)) %></span>
<span class="size"><%= size_formatter(image.getSize) %></span> <span class="size"><%= size_formatter(image.getSize) %></span>
</div> </div>
</div> </div>