rosa-build/app/views/users/profile/_projects.html.slim

62 lines
2.0 KiB
Plaintext
Raw Normal View History

2014-11-13 00:17:22 +00:00
= simple_form_for :project, html: { 'ng-submit' => 'search()', id: 'search_projects_form' } do |f|
= hidden_field_tag 'subject_uname', subject.uname
2014-11-13 00:17:22 +00:00
.row
- if current_user
.col-md-2
.dropdown
button.btn.btn-default.dropdown-toggle type="button" id="dropdownVisibility" aria-expanded="true"
span> ng-show="visibility == 'all'"
= t('.visibilities.all')
span> ng-show="visibility == 'open'"
i.fa.fa-unlock-alt.text-success>
= t('.visibilities.open')
span> ng-show="visibility == 'hidden'"
i.fa.fa-lock.text-danger>
= t('.visibilities.hidden')
span.caret
2014-11-13 00:17:22 +00:00
ul.dropdown-menu role="menu" aria-labelledby="dropdownVisibility"
li role="presentation"
a.btn-link role="menuitem" tabindex="-1" ng-click="visibility = 'all'"
= t('.visibilities.all')
li role="presentation"
a.btn-link role="menuitem" tabindex="-1" ng-click="visibility = 'open'"
i.fa.fa-unlock-alt.text-success>
= t('.visibilities.open')
li role="presentation"
a.btn-link role="menuitem" tabindex="-1" ng-click="visibility = 'hidden'"
i.fa.fa-lock.text-danger>
= t('.visibilities.hidden')
.col-md-5
2014-11-13 00:17:22 +00:00
= f.input :name,
label: false,
input_html: { ng_model: 'term' }
.col-md-5
=> f.button :submit, t('.search')
=> t('.or')
= link_to t('.clear'), subject
2014-11-13 00:17:22 +00:00
hr
table.table.table-striped ng-show='!processing'
thead
tr
th
tbody
tr ng-repeat='project in projects'
td
h4
i.fa.fa-unlock-alt.text-success> ng-if='project.public'
i.fa.fa-lock.text-danger> ng-if='!project.public'
2014-11-13 00:17:22 +00:00
a ng-href='{{project.path}}'
| {{project.name}}
p
| {{project.description}}
.help-block
=> t('.updated')
| {{project.updated}}
2014-11-13 00:17:22 +00:00
= angularjs_paginate