Commit 8f0a97da0498dbfab0ad98402bea577ee68abdab

Authored by Dmitriy Zaporozhets
1 parent 4f2e9fb8

Add base64 encoding selector to new file UI so you can add image to repo

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/generic/files.scss
... ... @@ -45,7 +45,7 @@
45 45 text-align: center;
46 46 img {
47 47 padding: 100px;
48   - max-width: 300px;
  48 + max-width: 50%;
49 49 }
50 50 }
51 51  
... ...
app/views/projects/new_tree/show.html.haml
... ... @@ -15,6 +15,12 @@
15 15 %span= @ref
16 16  
17 17 .form-group.commit_message-group
  18 + = label_tag :encoding, class: "control-label" do
  19 + Encoding
  20 + .col-sm-10
  21 + = select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'form-control'
  22 +
  23 + .form-group.commit_message-group
18 24 = label_tag 'commit_message', class: "control-label" do
19 25 Commit message
20 26 .col-sm-10
... ...