Sha256: 83b8e5cd954ddc73139869b11ce0242db0bc986fd6dba17f23009238aa426da4

Contents?: true

Size: 1.61 KB

Versions: 17

Compression:

Stored size: 1.61 KB

Contents

<div id="<%= @release.project.slug %>_changelog" class="-houston-changelog">
  
  <div class="-houston-changelog-day">
    <h4>
      <% if (defined?(draft) && draft) %>
        Draft
      <% else %>
        <%= format_release_date(@release.date) %> &nbsp;&#x3009;
        <%= @release.released_at.strftime("%-I:%M %p") %>
      <% end %>
      <%= link_to "Edit", edit_release_path(@release) if can?(:update, @release) and !(defined?(draft) && draft) %>
    </h4>
  </div>
  
  <%= div_for @release do %>
    
    <% unless @release.message.blank? %>
    <div class="release-message">
      <%= mdown(@release.message) %>
    </div>
    <% end %>
    
    <% if @release.release_changes.any? %>
      <div class="release-changes">
        <% ordered_by_tag(@release.release_changes).each do |change| %>
          <% if can?(:read, change) %>
            <div class="change">
              <%= format_change_tag change.tag %>
              <div class="change-summary"><%= format_change(change) %></div>
            </div>
          <% end %>
        <% end %>
      </div>
    <% else %>
      <div class="release-no-changes">No changes</div>
    <% end %>
    
    <% unless (defined?(draft) && draft) %>
      <div class="release-detail">
        <%= render partial: "releases/tickets", locals: {tickets: @release.tickets} if can?(:read, Ticket) %>
        <%= render partial: "releases/antecedents", locals: {antecedents: @release.antecedents} if can?(:read, Ticket) %>
        <%= render partial: "releases/commits", locals: {commits: @release.commits} if can?(:read, Commit) && !for_email? %>
      </div>
    <% end %>
    
  <% end %>
  
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
houston-core-0.7.0 app/views/releases/_changelog.html.erb
houston-core-0.7.0.beta4 app/views/releases/_changelog.html.erb
houston-core-0.7.0.beta3 app/views/releases/_changelog.html.erb
houston-core-0.7.0.beta2 app/views/releases/_changelog.html.erb
houston-core-0.7.0.beta app/views/releases/_changelog.html.erb
houston-core-0.6.3 app/views/releases/_changelog.html.erb
houston-core-0.6.2 app/views/releases/_changelog.html.erb
houston-core-0.6.1 app/views/releases/_changelog.html.erb
houston-core-0.6.0 app/views/releases/_changelog.html.erb
houston-core-0.5.6 app/views/releases/_changelog.html.erb
houston-core-0.5.5 app/views/releases/_changelog.html.erb
houston-core-0.5.4 app/views/releases/_changelog.html.erb
houston-core-0.5.3 app/views/releases/_changelog.html.erb
houston-core-0.5.2 app/views/releases/_changelog.html.erb
houston-core-0.5.1 app/views/releases/_changelog.html.erb
houston-core-0.5.0 app/views/releases/_changelog.html.erb
houston-core-0.5.0.beta1 app/views/releases/_changelog.html.erb