You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/01/17 23:31:09 UTC

git commit: CB-5130: added more functionallity to viewAll

Updated Branches:
  refs/heads/refactor ad2baf82b -> b6a462386


CB-5130: added more functionallity to viewAll


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/b6a46238
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/b6a46238
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/b6a46238

Branch: refs/heads/refactor
Commit: b6a4623865872f944c8e206033ba167da0a6474d
Parents: ad2baf8
Author: Steven Gill <st...@gmail.com>
Authored: Fri Jan 17 14:31:00 2014 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Jan 17 14:31:00 2014 -0800

----------------------------------------------------------------------
 attachments/css/layout.css              |  6 ++++++
 attachments/css/layout.less             |  6 ++++++
 attachments/js/controllers/viewAll.js   |  1 +
 attachments/partials/views/viewAll.html | 22 +++++++++++++++++-----
 4 files changed, 30 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b6a46238/attachments/css/layout.css
----------------------------------------------------------------------
diff --git a/attachments/css/layout.css b/attachments/css/layout.css
index 72263ce..8985b36 100644
--- a/attachments/css/layout.css
+++ b/attachments/css/layout.css
@@ -390,3 +390,9 @@ div.tags-pkg-desc {
   float: left;
   width: 70%;
 }
+div.right {
+  float: right;
+}
+div.left {
+  float: left;
+}

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b6a46238/attachments/css/layout.less
----------------------------------------------------------------------
diff --git a/attachments/css/layout.less b/attachments/css/layout.less
index 95913a0..9022ff9 100644
--- a/attachments/css/layout.less
+++ b/attachments/css/layout.less
@@ -465,3 +465,9 @@ div.tags-pkg-desc {
   float:left;
   width:70%;
 }
+div.right{
+  float:right;
+}
+div.left{
+  float:left
+}

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b6a46238/attachments/js/controllers/viewAll.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/viewAll.js b/attachments/js/controllers/viewAll.js
index 536f8c3..3bd3565 100644
--- a/attachments/js/controllers/viewAll.js
+++ b/attachments/js/controllers/viewAll.js
@@ -9,6 +9,7 @@ angular.module('registry.controllers').controller('ViewAllController', ['$rootSc
                     $scope.plugins = data.rows;
                     console.log($scope.plugins)
                     console.log($scope.plugins[0].doc.description)
+                    console.log($scope.plugins[0].doc['dist-tags'].latest)
                 }).
                 error(function(data, status){
                     if (status === 404){

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b6a46238/attachments/partials/views/viewAll.html
----------------------------------------------------------------------
diff --git a/attachments/partials/views/viewAll.html b/attachments/partials/views/viewAll.html
index cc5e681..12f6d44 100644
--- a/attachments/partials/views/viewAll.html
+++ b/attachments/partials/views/viewAll.html
@@ -1,13 +1,25 @@
 <div>
     <div id="pluginList">
         <div id="listHeader">
-            <div class="listHeaderItem">Plugin ID and Description</div>
-            <div class="listHeaderItem">Version</div>
-            <div class="listHeaderItem">Downloads</div>
+            <div class="listHeaderItem left">Plugin ID and Description</div>
+            <div class="right">
+                <div class="listHeaderItem left">Version</div>
+                <div class="listHeaderItem right">Downloads</div>
+            </div>
+            <div style="clear:both"></div>
         </div>
+        <div class="darkline"></div>
         <div ng-repeat="plugin in plugins">
-            <div><a ng-href="#/package/{{plugin.id}}">{{plugin.id}}</a></div>
-        
+            <div class="left">
+                <div><a ng-href="#/package/{{plugin.id}}">{{plugin.id}}</a></div>
+                <div>{{plugin.doc.description}}</div>
+            </div>
+            <div class="right">
+                <div class="left">{{plugin.doc['dist-tags'].latest}}</div>
+                <div class="right">count</div>
+            </div>
+            <div style="clear:both"></div>
+            <div class="lightline"></div>
         </div>
     </div>
 </div>