root/app/views/tickets/_ticket_intro.html.erb

Download in other formats: Raw | Text
Revisions
Dimitrij Denissenko
Dimitrij Denissenko
May 14 2009 * 21:42
(over 1 year ago)

Revision e9530e69be0439a2be1db9e299df4ced22e8d2fb

Preparations for 2.0-RC1 Updated Errors/Translations - Reduced labels More tranlations for German & Russian

Unknown File Type

A viewable MIME type was not detected. Trying to display the file content as plain text.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<div class="ticket-intro clearfix">

  <div class="span-4">
    <h6 class="small"><%= truncated_author(@ticket) %></h6>
    <div class="loud tiny bottom-5" title="<%=h time_interval_in_words(@ticket.created_at) %>">
      <%=h datetime_format(@ticket.created_at) %>        
    </div>        
    <%= author_gravatar(@ticket.user, @ticket.author, :email => @ticket.email) %>
  </div>


  <div class="span-18 last">    
  
    <% if permitted?(:tickets, :delete) || permitted?(:tickets, :modify, @ticket) -%>
      <div class="float-r actions smaller">        
        <% if permitted?(:tickets, :modify, @ticket) -%>
          <%= in_place_edit_external_control _('Edit'), 'ticket-content' %>
        <% end -%>
        <% if permitted?(:tickets, :delete) -%>
          <%= link_to _('Delete'), project_ticket_path(Project.current, @ticket), options_for_destroy_link %>
        <% end -%>
      </div>
    <% end -%>

    <% if @ticket.attachment? %>
      <ul class="ticket-actions">
        <li class="loud"><span class="strong"><%=_ 'Attachment' %></span> <%=_ 'added' %>: <%= link_to_attachment_download @ticket.attachment %></li>
      </ul>
    <% end -%>

    <div id="ticket-content" class="markup ticket-content"><%= markup(@ticket.content) %></div>
    <% if permitted?(:tickets, :modify, @ticket) -%>
      <%= retro_in_place_editor 'ticket-content', 
            :url => modify_content_project_ticket_path(Project.current, @ticket),
            :rows => 4, :text => h(@ticket.content) %>
    <% end -%>
    
  </div>
  
</div>