Commit c42aa99b authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix haml_lint offenses in tree_content and tree_header

parent 61a68501
.tree-content-holder .tree-content-holder
#sidebar{ ":class" => "{'sidebar-mini' : isMini}", "v-cloak" => "1" }< #sidebar{ ":class" => "{'sidebar-mini' : isMini}", "v-cloak" => "1" }<
%table.table %table.table
%thead{"v-if" => "!isMini"} %thead{ "v-if" => "!isMini" }
%th{"v-if" => "!isMini"} %th{ "v-if" => "!isMini" }
Name Name
%th{"v-else" => "1"} %th{ "v-else" => "1" }
Project Project
%th.hidden-sm.hidden-xs{"v-if" => "!isMini"} %th.hidden-sm.hidden-xs{ "v-if" => "!isMini" }
Last Commit Last Commit
%th.hidden-xs{"v-if" => "!isMini"} %th.hidden-xs{ "v-if" => "!isMini" }
Last Update Last Update
%tbody %tbody
%tr{ is: "repo-file-options", ":is-mini" => "isMini", "project-name" => @project.name } %tr{ is: "repo-file-options", ":is-mini" => "isMini", "project-name" => @project.name }
%tr{ is: "repo-previous-directory", ":prev-url" => "prevURL", "@linkclicked" => "linkClicked(prevURL)" } %tr{ is: "repo-previous-directory", ":prev-url" => "prevURL", "@linkclicked" => "linkClicked(prevURL)" }
%tr{ is: "repo-loading-file", "v-for" => "n in 5", ":loading" => "loading", ":has-files" => "!!files.length", ":is-mini" => "isMini"} %tr{ is: "repo-loading-file", "v-for" => "n in 5", ":loading" => "loading", ":has-files" => "!!files.length", ":is-mini" => "isMini" }
%tr{ is: "repo-file", "v-for" => "file in files", ":key" => "file.id", ":file" => "file",":is-mini" => "isMini", "@linkclicked" => "linkClicked(file)", ":is-tree" => "isTree", ":loading" => "loading", ":has-files" => "!!files.length", ":active-file" => "activeFile" } %tr{ is: "repo-file", "v-for" => "file in files", ":key" => "file.id", ":file" => "file",":is-mini" => "isMini", "@linkclicked" => "linkClicked(file)", ":is-tree" => "isTree", ":loading" => "loading", ":has-files" => "!!files.length", ":active-file" => "activeFile" }
.panel-right> .panel-right>
%ul#tabs{"v-if" => "isMini", ":style" => "{height: 41 + scrollWidth + 'px'}", "v-cloak" => "1"} %ul#tabs{ "v-if" => "isMini", ":style" => "{height: 41 + scrollWidth + 'px'}", "v-cloak" => "1" }
%li{ is: "repo-tab", "v-for" => "tab in openedFiles", ":key" => "tab.id", ":tab" => "tab", ":class" => "{'active' : tab.active}" } %li{ is: "repo-tab", "v-for" => "tab in openedFiles", ":key" => "tab.id", ":tab" => "tab", ":class" => "{'active' : tab.active}" }
#repo-file-buttons #repo-file-buttons
#ide{ data: { url: repo_url } } #ide{ data: { url: repo_url } }
#binary-viewer{ "v-if" => "binary" } #binary-viewer{ "v-if" => "binary" }
%img{"v-if" => "binaryTypes.png", ":src" => "pngBlobWithDataURI"} %img{ "v-if" => "binaryTypes.png", ":src" => "pngBlobWithDataURI", ":alt" => "activeFile.name", alt: '' }
%div{"v-if" => "binaryTypes.markdown", "v-html" => "activeFile.html"} %div{ "v-if" => "binaryTypes.markdown", "v-html" => "activeFile.html" }
#commit-area{"v-if" => "changedFiles.length"} #commit-area{ "v-if" => "changedFiles.length" }
%form.form-horizontal %form.form-horizontal
%fieldset %fieldset
.form-group .form-group
%label.col-md-4.control-label Staged files ({{changedFiles.length}}) %label.col-md-4.control-label Staged files ({{changedFiles.length}})
.col-md-4 .col-md-4
%ul.list-unstyled %ul.list-unstyled
%li{"v-for" => "file in changedFiles"} %li{ "v-for" => "file in changedFiles" }
%span.help-block %span.help-block
{{file.url}} {{file.url}}
/ Textarea / Textarea
.form-group .form-group
%label.col-md-4.control-label{:for => "commit-message"} Commit message %label.col-md-4.control-label{ :for => "commit-message" } Commit message
.col-md-4 .col-md-4
%textarea#commit-message.form-control{:name => "commit-message"} Updating README.md %textarea#commit-message.form-control{ :name => "commit-message" } Updating README.md
/ Button Drop Down / Button Drop Down
.form-group .form-group
%label.col-md-4.control-label{:for => "target-branch"} Target branch %label.col-md-4.control-label{ :for => "target-branch" } Target branch
.col-md-4 .col-md-4
.input-group .input-group
.input-group-btn .input-group-btn
%button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"} %button.btn.btn-default.dropdown-toggle{ "data-toggle" => "dropdown", :type => "button" }
Action Action
=icon "caret-down" = icon "caret-down"
%ul.dropdown-menu.pull-right %ul.dropdown-menu.pull-right
%li %li
%a{:href => "#"} Target branch %a{ :href => "#" } Target branch
%li %li
%a{:href => "#"} Create my own branch %a{ :href => "#" } Create my own branch
%input#target-branch.form-control{:name => "target-branch", :placeholder => "placeholder", :type => "text"}/ %input#target-branch.form-control{ :name => "target-branch", :placeholder => "placeholder", :type => "text" }/
/ Multiple Checkboxes / Multiple Checkboxes
.form-group .form-group
%label.col-md-4.control-label{:for => "checkboxes"} %label.col-md-4.control-label{ :for => "checkboxes" }
.col-md-4 .col-md-4
.checkbox .checkbox
%label{:for => "checkboxes-0"} %label{ :for => "checkboxes-0" }
%input#checkboxes-0{:name => "checkboxes", :type => "checkbox", :value => "1"}/ %input#checkboxes-0{ :name => "checkboxes", :type => "checkbox", :value => "1" }/
Start a new merge request with these changes Start a new merge request with these changes
......
.tree-controls .tree-controls
%a.btn.btn-default.btn-grouped#editable-mode{"href"=>"#", "@click.prevent" => "editClicked", "v-cloak" => 1} %a.btn.btn-default.btn-grouped#editable-mode{ "href"=>"#", "@click.prevent" => "editClicked", "v-cloak" => 1 }
%i{":class" => "buttonIcon"} %i{ ":class" => "buttonIcon" }
%span {{buttonLabel}} %span {{buttonLabel}}
= render 'projects/find_file_link' = render 'projects/find_file_link'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment