Edit

kmx.io/kmxgit/lib/kmxgit_web/templates/repository/show_files.html.heex

Branch :

  • lib/kmxgit_web/templates/repository/show_files.html.heex
  • <div class="row">
      <div class="col col-12 col-md-7">
        <%= render("show_branch.html", assigns) %>
        <%= if @git.log1 do %>
          <%= render("show_commit_message.html", assigns) %>
        <% end %>
        <p>
          <ul class="list-group">
            <li class="list-group-item bg-h">
              <h2><%= gettext("Files") %></h2>
            </li>
            <%= for file <- @git.files do %>
              <li class="list-group-item">
                <%= case file.type do %>
                  <% :blob -> %>
                    <%= link to: file.url do %>
                      <i class="fa fa-file fixed-width"></i>
                      <%= file.name %>
                    <% end %>
                  <% :tree -> %>
                    <%= link to: file.url do %>
                      <i class="fa fa-folder fixed-width"></i>
                      <%= "#{file.name}/" %>
                    <% end %>
                  <% _ -> %>
                    <%= "#{file.type} #{file.name}" %>
                <% end %>
              </li>
            <% end %>
          </ul>
        </p>
      </div>
      <div class="col col-12 col-md-5">
        <%= render("show_properties.html", assigns) %>
      </div>
    </div>