Skip to content

Instantly share code, notes, and snippets.

@nrrrdcore
Created September 5, 2013 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrrrdcore/03a23ff398d5bd8c33b6 to your computer and use it in GitHub Desktop.
Save nrrrdcore/03a23ff398d5bd8c33b6 to your computer and use it in GitHub Desktop.
<div class="drawer">
<ul>
<% if !view.index? && view.none_found? %>
<% view.found_repositories.each do |repo| %>
<li class="imported">
<a href="<%= import_overview_path(repo) %>" <% if repo.status.error? %> class="error"<% end %>><%= repo.name %></a>
</li>
<% end %>
<% end %>
</ul>
</div>
<%= render 'shared/nav', :found_repository => view.found_repositories.first %>
<div class="map-gui clearfix">
<div class="top">
<h2 class="repos-imported">We found <%= view.found_repositories.size %> projects<% if !view.index? %> at <%= view.importer_url %><% end %></h2>
<p>If you don't see the project you want to import to GitHub below try <a href="<%= url_for(:action => 'new') %>">starting over</a> with a different url.</p>
</div>
<div>
<% if !view.index? && view.none_found? %>
<div class="fill">
<p>Sorry, we couldn't find any repositories at <%= view.importer_url %></p>
</div>
<% else %>
<div class="import-repos-container">
<form>
<ol class="slats">
<% view.found_repositories.each do |repo| %>
<li class="imported">
<h2 <% if repo.status.error? %> class="error"<% end %>>
<%= repo.name %>
<p><%= repo.short_url %></p>
</h2>
<a href="<%= import_overview_path(repo) %>" class="button primary">Start Import</a>
</li>
<% end %>
<!-- <% view.imported_repositories.each do |repo| %>
<li>
<a href="<%= import_overview_path(repo) %>">
<h2>
<%= repo.name %>
<p><%= repo.short_url %></p>
</h2>
</a>
</li>
<% end %>
-->
</ol>
</form>
</div>
<% end %>
</div>
<div class="clearfix outside">
<br/>
<% if view.index? %>
<% view.importers_with_errors.each do |importer| %>
<%= importer.url %> - <% importer.error_message %> - <% link_to importer, :method => :delete %><br/>
<% end %>
<% end %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment