From fc59139279640fe408a4d86287e404bd6f7441e9 Mon Sep 17 00:00:00 2001 From: Adrian Schaedle Date: Sat, 11 Oct 2014 22:59:26 -0700 Subject: [PATCH] Update Bootstrap to 3.2, markup to match --- bower.json | 2 +- public/index.html | 18 +++++++++--------- public/js/component/ui_top_components_list.js | 11 +++++++---- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index c4ab28e..78412b7 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ "mustache": "~0.7.2", "flight-components": "0.1.1", "underscore-amd": "~1.5.0", - "bootstrap": "~3.0.0", + "bootstrap": "~3.2.0", "moment": "~2.1.0" }, "devDependencies": { diff --git a/public/index.html b/public/index.html index 7ab6bba..04b48f7 100644 --- a/public/index.html +++ b/public/index.html @@ -23,7 +23,7 @@

Flight

-

Discover Flight components.

+

Discover Flight components.


@@ -36,18 +36,18 @@

Discover
- +
+
Most forked
+
-
-
@@ -76,7 +76,7 @@

Discover - This list is automatically generated from the Bower components list. Components must be prefixed with "flight-" in order to be visible. +

This list is automatically generated from the Bower components list. Components must be prefixed with "flight-" in order to be visible.

diff --git a/public/js/component/ui_top_components_list.js b/public/js/component/ui_top_components_list.js index daaa4c8..009141b 100644 --- a/public/js/component/ui_top_components_list.js +++ b/public/js/component/ui_top_components_list.js @@ -30,11 +30,14 @@ define(function (require) { this.htmlFor = function (component) { + var template = [ + '', + '{{stat}}', + '{{name}}', + '' + ].join('\n'); component.stat = this.attr.displayFunction(component[this.attr.compare]); - return Mustache.render( - "
  • {{name}}" + - "{{stat}}
  • " - , component); + return Mustache.render(template, component); }; this.displayTopList = function (ev, data) { data.components.forEach(function (component) {