Sha256: 2c55ddeb3c2127b64dbb95bc63483f162898c726024ad210246d36539517f91e

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

<%- model_class = Repository -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human %></h1>
</div>

<dl class="dl-horizontal">
  <dt><strong><%= model_class.human_attribute_name(:name) %>:</strong></dt>
  <dd><%= @repository.name %></dd>
  <dt><strong><%= model_class.human_attribute_name(:path) %>:</strong></dt>
  <dd><%= @repository.path %></dd>
  <dt><strong><%= model_class.human_attribute_name(:user_id) %>:</strong></dt>
  <dd><%= @repository.user.try :username %></dd>
  <dt><strong><%= model_class.human_attribute_name(:public) %>:</strong></dt>
  <dd><%= @repository.public %></dd>
</dl>

<div class="form-actions">
  <%= link_to t('.back', :default => t("helpers.links.back")),
              repositories_path, :class => 'btn'  %>
  <% if can? :update, @repository %>
    <%= link_to t('.edit', :default => t("helpers.links.edit")),
                edit_repository_path(@repository), :class => 'btn' %>
  <% end %>
  <% if can? :destroy, @repository %>
    <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                repository_path(@repository),
                :method => 'delete',
                :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                :class => 'btn btn-danger' %>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git_wit-0.0.6 test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.6.pre test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.5 test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.4.pre2 test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.4.pre test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.3 test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.2 test/dummy/app/views/repositories/show.html.erb
git_wit-0.0.1 test/dummy/app/views/repositories/show.html.erb