summaryrefslogtreecommitdiff
path: root/app/views/help
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-08-01 08:50:59 +0000
committerPhil Hughes <me@iamphill.com>2017-08-01 08:50:59 +0000
commit423d31a300370c9c0acd9e8faae4d7bda2ac7d61 (patch)
tree733b732407f6f682edd875e3915af5e638cfce7d /app/views/help
parent5000c4ff4a04007b09bacbc5b5889d1ae3de4e59 (diff)
downloadgitlab-ce-423d31a300370c9c0acd9e8faae4d7bda2ac7d61.tar.gz
Inline script cleanup globals and easy
Diffstat (limited to 'app/views/help')
-rw-r--r--app/views/help/ui.html.haml25
1 files changed, 2 insertions, 23 deletions
diff --git a/app/views/help/ui.html.haml b/app/views/help/ui.html.haml
index 48edbb8c16f..f18c3a74120 100644
--- a/app/views/help/ui.html.haml
+++ b/app/views/help/ui.html.haml
@@ -1,5 +1,7 @@
- page_title "UI Development Kit", "Help"
- lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum nisi sapien, non consequat lectus aliquam ultrices. Suspendisse sodales est euismod nunc condimentum, a consectetur diam ornare."
+- content_for :page_specific_javascripts do
+ = webpack_bundle_tag('ui_development_kit')
.gitlab-ui-dev-kit
%h1 GitLab UI development kit
@@ -407,29 +409,6 @@
.dropdown-content
.dropdown-loading
= icon('spinner spin')
- :javascript
- $('#js-project-dropdown').glDropdown({
- data: function (term, callback) {
- Api.projects(term, { order_by: 'last_activity_at' }, function (data) {
- callback(data);
- });
- },
- text: function (project) {
- return project.name_with_namespace || project.name;
- },
- selectable: true,
- fieldName: "author_id",
- filterable: true,
- search: {
- fields: ['name_with_namespace']
- },
- id: function (data) {
- return data.id;
- },
- isSelected: function (data) {
- return data.id === 2;
- }
- })
.example
%div