This commit provides: * The checkout instructions as a notification-box with info icon * A style for affixed inputs in the toolbar * The checkout URL as an affixed input * The checkout URL inside the notifcation-box on empty repository pages * Animations for the checkout instructions toggle * Restyle revision sectionpull/3442/head
parent
22c3b0adb5
commit
5d978e0d60
@ -1,30 +1,31 @@ |
||||
<% if instructions.present? && instructions.available? %> |
||||
<form class="form -bordered -compressed"> |
||||
<fieldset class="form--fieldset -collapsible"> |
||||
<legend class="form--fieldset-legend" title="<%= l('repositories.checkout.instructions') %>" |
||||
onclick="toggleFieldset(this);"><%= l('repositories.checkout.instructions') %></legend> |
||||
<div class="form--field"> |
||||
<label class="form--label"><%= l('repositories.checkout.url') %></label> |
||||
<div class="form--field-container"> |
||||
<div class="form--field-affix"> |
||||
<%= instructions.checkout_command %> |
||||
</div> |
||||
<div class="form--text-field-container -xwide"> |
||||
<input type="text" class="form--text-field -clickable" |
||||
onclick="this.focus(); this.select()" |
||||
readonly="readonly" value="<%= instructions.checkout_url %>"> |
||||
</div> |
||||
</div> |
||||
<div class="form--field-instructions -no-italic"> |
||||
<%= simple_format instructions.instructions %> |
||||
<% if instructions.manages_permissions? %> |
||||
<p> |
||||
<span><%= l('repositories.checkout.access_permission') %></span> |
||||
<strong><%= l("repositories.checkout.access.#{instructions.permission}") %></strong> |
||||
</p> |
||||
<% end %> |
||||
<div id="repository--checkout-instructions" class="notification-box -info"> |
||||
<a href="#" class="notification-box--close">×</a> |
||||
<div class="notification-box--content"> |
||||
<p> |
||||
<%= simple_format instructions.instructions %> |
||||
<% if instructions.manages_permissions? %> |
||||
<br/> |
||||
<span><%= l('repositories.checkout.access_permission') %>:</span> |
||||
<strong><%= l("repositories.checkout.access.#{instructions.permission}") %></strong> |
||||
<% end %> |
||||
</p> |
||||
<% if show_url %> |
||||
<div class="repository--checkout-instructions--url"> |
||||
<form class="form"> |
||||
<div class="form--field"> |
||||
<div class="form--field-container"> |
||||
<div class="form--field-affix"> |
||||
<%= instructions.checkout_command %> |
||||
</div> |
||||
<div class="form--text-field-container -xwide"> |
||||
<input type="text" class="form--text-field -clickable" |
||||
onclick="this.focus(); this.select()" |
||||
readonly="readonly" value="<%= instructions.checkout_url %>"> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</fieldset> |
||||
</form> |
||||
<% end %> |
||||
<% end %> |
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue