diff --git a/client/projects/controllers/manual.js b/client/projects/controllers/manual.js index 879be9b20..f47a822b9 100644 --- a/client/projects/controllers/manual.js +++ b/client/projects/controllers/manual.js @@ -4,7 +4,11 @@ var $ = require('jquery'); module.exports = function ($scope, $attrs) { var provider = $attrs.id.split('-')[1]; - $scope.config = {}; + $scope.config = { + auth: { + type: 'none' + } + }; $scope.projects = global.manualProjects[provider] || []; $scope.remove = function (project) { project.really_remove = 'removing'; diff --git a/lib/views/partials/git-manual.html b/lib/views/partials/git-manual.html new file mode 100644 index 000000000..85fa23dab --- /dev/null +++ b/lib/views/partials/git-manual.html @@ -0,0 +1,90 @@ +
+ {% for item in manual %} +
+
+

{{ item.provider.title }}

+
+
+

+ +
+ Provides a link in the UI so you can easily jump to viewing the project's repository wherever it's hosted. +

+ +

+ +
+ A Github-style namespace/name combination for the project. e.g. Strider-CD/strider +

+ +

+ + Public projects are visible to unauthenticated users. +

+
+ +
+ {{ item.provider.html | raw }} +
+
+ +
+ +
+ {% endfor %} +
diff --git a/lib/views/projects.html b/lib/views/projects.html index f0345f66d..556a447a4 100644 --- a/lib/views/projects.html +++ b/lib/views/projects.html @@ -13,7 +13,6 @@ {% endpluginblock %} - {% block bodyContent %}

Projects

@@ -48,12 +47,13 @@

Projects

{% endfor %} -
-
- × -
-
+ +
+
+ × +
+
@@ -151,57 +151,8 @@

Projects

-
- {% for item in manual %} -
-
-

{{ item.provider.title }}

-
-

- Public projects are visible to unauthenticated users. -

Public
-

- -

- Provides a link in the UI if you put a url there, so you can easily jump to viewing the repo on github or wherever -
- -

- -

- A github-style namespace/name combination for the project. e.g. Strider-CD/strider -
- -

-
- -
- {{ item.provider.html | raw }} -
- -
- -
- {% endfor %} -
+ + {% include "partials/git-manual.html" %}
{% endblock %} diff --git a/package.json b/package.json index ea0c6e323..a7656d895 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,23 @@ }, "main": "main.js", "description": "Brilliant continuous deployment platform", + "scripts": { + "test": "make test", + "start": "bin/strider", + "dev": "npm run build-debug && bin/strider", + "blanket": { + "pattern": "lib", + "data-cover-never": "node_modules" + }, + "pre": "mkdirp dist/scripts dist/styles", + "styles": "lessc client/styles/strider.less > dist/styles/styles.css", + "styles-debug": "lessc --source-map client/styles/strider.less dist/styles/styles.css", + "watch": "npm run pre && watchify -e client/app.js -o dist/scripts/app.js", + "build": "npm run pre && npm run styles && browserify -e client/app.js -o dist/scripts/app.js", + "build-debug": "npm run pre && npm run styles-debug && browserify -d -e client/app.js -o dist/scripts/app.js", + "unitcov": "istanbul cover _mocha --recursive test/unit", + "unitdev": "mocha -w --recursive test/unit -R min" + }, "keywords": [ "strider", "continuous integration", @@ -38,24 +55,6 @@ "browserify-shim" ] }, - "scripts": { - "test": "make test", - "start": "bin/strider", - "dev": "npm run build-debug && bin/strider", - "blanket": { - "pattern": "lib", - "data-cover-never": "node_modules" - }, - "pre": "mkdirp dist/scripts dist/styles", - "vendor": "bower-installer", - "styles": "lessc client/styles/strider.less > dist/styles/styles.css", - "styles-debug": "lessc --source-map client/styles/strider.less dist/styles/styles.css", - "watch": "npm run pre && watchify -e client/app.js -o dist/scripts/app.js", - "build": "npm run pre && npm run styles && browserify -e client/app.js -o dist/scripts/app.js", - "build-debug": "npm run pre && npm run styles-debug && browserify -d -e client/app.js -o dist/scripts/app.js", - "unitcov": "istanbul cover _mocha --recursive test/unit", - "unitdev": "mocha -w --recursive test/unit -R min" - }, "dependencies": { "MD5": "^1.2.1", "ansiparse": "0.0.5-1",