File tree 2 files changed +5
-10
lines changed
app/views/gitolite_public_keys
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 13
13
<% else %>
14
14
<% ssh_keys . each do |key | %>
15
15
< tr class ="<%= curcycle = cycle ( 'odd' , 'even' ) ; ( @gitolite_public_key == key ) ? 'highlight' : curcycle %> ">
16
- < td style ="width: 15%; text-align: left; "> <%= h ( key ) %> </ td >
16
+ < td style ="text-align: left; "> <%= h ( key ) %> </ td >
17
17
18
- < td style ="width: 25%; text-align: left; "> <%= key . fingerprint %> < i class ="fa fa-check " style ="color: green; margin-left: 5px; "> </ i > </ td >
18
+ < td style ="text-align: left; "> < i class ="fa fa-check " style ="color: green; margin-left: 5px; margin-right: 5px; "> </ i > <%= key . fingerprint % ></ td >
19
19
20
20
<% if params [ :id ] %>
21
21
< td style ="text-align: left; "> <%= key . gitolite_path %> </ td >
Original file line number Diff line number Diff line change 20
20
</ fieldset >
21
21
22
22
<%= javascript_tag do %>
23
- function load_form_actions() {
24
- $('#gitolite_public_key_key_type').on('change', function() {
25
- key_type_change(this)
26
- });
27
- }
28
-
29
23
function key_type_change(element) {
30
- if (!element) return;
31
24
var idx = element.selectedIndex;
32
25
if (idx == 0) {
33
26
$('#key_type_options').hide();
38
31
}
39
32
40
33
$(document).ready(function() {
41
- load_form_actions();
34
+ $('#gitolite_public_key_key_type').on('change', function() {
35
+ key_type_change(this)
36
+ });
42
37
});
43
38
<% end %>
You can’t perform that action at this time.
0 commit comments