Commit graph

14 commits

Author SHA1 Message Date
Bob Van Landuyt
aeed6b5a34 Only show push-to-master authorized users
Hide the push to master instructions for users that are not allowed to
do that.

Also hide buttons that would direct them to commit directly in master
2018-04-24 13:59:41 +02:00
Jose Ivan Vargas
ea7127dea9 Changed anchor not to have the js prefix, add i18n 2018-04-20 12:48:04 -05:00
Jose Ivan Vargas
e40bc1b190 Create autodevops settings sections 2018-04-20 12:48:04 -05:00
Oswaldo Ferreira
3956bb552f Use select instead reject 2018-02-22 13:59:15 -03:00
Oswaldo Ferreira
45c77dacbc Move can_current_user_push_to_branch to Presenter 2018-02-22 13:59:15 -03:00
Eric Eastwood
dcac35b484 Update enabled Kubernetes cluster button to "Kubernetes configured"
See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16900#note_60175507
2018-02-22 10:01:08 -06:00
Eric Eastwood
65da44b25e Fix enabled filtering on stat anchors 2018-02-21 10:57:41 -06:00
Oswaldo Ferreira
082a32350a Use method call instead hash accesses 2018-02-21 11:58:42 -03:00
Oswaldo Ferreira
70156f3b8e Memoize method which is called multiple times on presenter 2018-02-20 19:04:10 -03:00
Oswaldo Ferreira
1521fd9f5c Add unit tests to presenter methods 2018-02-20 18:59:19 -03:00
Oswaldo Ferreira
d714073d62 Use OpenStruct instead Hash for statistics buttons 2018-02-20 16:15:01 -03:00
Oswaldo Ferreira
083003bf1e Improve methods naming 2018-02-20 15:51:52 -03:00
Oswaldo Ferreira
c445ef539e Move default_project_view tests to presenter 2018-02-20 15:25:46 -03:00
Oswaldo Ferreira
e0e3f1c275 Move button list logic to project presenter 2018-02-20 13:03:06 -03:00