Initial commit of foodsoft 2
This commit is contained in:
commit
5b9a7e05df
657 changed files with 70444 additions and 0 deletions
28
app/views/messages/show.haml
Normal file
28
app/views/messages/show.haml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
%h1 Nachricht anzeigen
|
||||
|
||||
%div{:style => "width:40em"}
|
||||
- if @message
|
||||
%table{:style => "width:25em"}
|
||||
%tr
|
||||
%td Von:
|
||||
%td=h @message.system_message? ? 'FoodSoft' : @message.sender.nick
|
||||
%tr
|
||||
%td An:
|
||||
%td=h @message.recipients
|
||||
%tr
|
||||
%td Betreff:
|
||||
%td
|
||||
%b=h @message.subject
|
||||
%tr
|
||||
%td Gesendet:
|
||||
%td= format_time(@message.created_on)
|
||||
%hr/
|
||||
%p= simple_format(h(@message.body))
|
||||
%hr/
|
||||
%p
|
||||
= link_to('Antworten', :action => 'reply', :id => @message) + ' | ' unless @message.system_message?
|
||||
= link_to('Löschen', {:action => 'destroy', :id => @message}, :method => "post")
|
||||
|
|
||||
= link_to 'Nachrichteneingang', :action => 'inbox'
|
||||
- else
|
||||
%p Nachricht kann nicht angezeigt werden.
|
||||
Loading…
Add table
Add a link
Reference in a new issue