2014-11-13 00:17:22 +00:00
|
|
|
= simple_form_for :project, html: { 'ng-submit' => 'search()', id: 'search_projects_form' } do |f|
|
2014-11-13 21:19:18 +00:00
|
|
|
= hidden_field_tag 'subject_uname', subject.uname
|
2014-11-13 00:17:22 +00:00
|
|
|
|
|
|
|
.row
|
|
|
|
- if current_user
|
2014-11-13 21:19:18 +00:00
|
|
|
.col-md-2
|
2015-03-18 11:04:37 +00:00
|
|
|
.btn-group ng-cloak = true
|
|
|
|
button.btn.btn-default.dropdown-toggle[ type="button"
|
|
|
|
id="dropdownVisibility"
|
|
|
|
aria-expanded="false"
|
|
|
|
data-toggle="dropdown" ]
|
2014-11-13 21:19:18 +00:00
|
|
|
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
|
|
|
|
2015-03-18 11:04:37 +00:00
|
|
|
ul.dropdown-menu role="menu"
|
2014-11-13 21:19:18 +00:00
|
|
|
li role="presentation"
|
2015-03-18 11:04:37 +00:00
|
|
|
a.btn-link.pointer role="menuitem" tabindex="-1" ng-click="visibility = 'all'"
|
2014-11-13 21:19:18 +00:00
|
|
|
= t('.visibilities.all')
|
|
|
|
li role="presentation"
|
2015-03-18 11:04:37 +00:00
|
|
|
a.btn-link.pointer role="menuitem" tabindex="-1" ng-click="visibility = 'open'"
|
2014-11-13 21:19:18 +00:00
|
|
|
i.fa.fa-unlock-alt.text-success>
|
|
|
|
= t('.visibilities.open')
|
|
|
|
li role="presentation"
|
2015-03-18 11:04:37 +00:00
|
|
|
a.btn-link.pointer role="menuitem" tabindex="-1" ng-click="visibility = 'hidden'"
|
2014-11-13 21:19:18 +00:00
|
|
|
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
|
2014-11-13 21:19:18 +00:00
|
|
|
=> f.button :submit, t('.search')
|
|
|
|
=> t('.or')
|
2015-02-05 23:59:45 +00:00
|
|
|
= link_to t('.clear'), subject, class: 'btn btn-default'
|
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
|
2014-11-13 21:19:18 +00:00
|
|
|
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}}
|
2014-11-18 19:00:09 +00:00
|
|
|
.help-block title = '{{project.updated_at_utc}}'
|
2014-11-13 21:19:18 +00:00
|
|
|
=> t('.updated')
|
2014-11-18 19:00:09 +00:00
|
|
|
| {{project.updated_at | amDateFormat:'YYYY-MM-DD HH:mm'}} (
|
|
|
|
span am-time-ago = 'project.updated_at'
|
|
|
|
| )
|
2014-11-13 00:17:22 +00:00
|
|
|
|
|
|
|
= angularjs_paginate
|