Prechádzať zdrojové kódy

Added partial for displaying Top Contributed Repository data

David Leonard 10 rokov pred
rodič
commit
13a73f479d

+ 24 - 0
angular/partials/githubTopContributions.partial.html

@@ -0,0 +1,24 @@
+<div class="row text-center">
+	<h1> Github Top Contributed Repositories</h1>
+</div>
+
+<div class="col-lg-12">
+    <div class="table-responsive">
+        <table class="table table-bordered table-hover table-striped tablesorter">
+            <thead>
+                <tr>
+                    <th class="header">Repository Name</th>
+                    <th class="header">Total Commits</th>
+                    <th class="header">Author</th>
+                </tr>
+            </thead>
+            <tbody>
+                <tr data-ng-repeat="data in githubTopContributions.data.committed">
+                        <td>{{ data.repo_name }}</td>
+                        <td>{{ data.total }}</td>
+                        <td>{{ data.author }}</td>
+                </tr>
+            </tbody>
+        </table>
+    </div>
+</div>

+ 1 - 2
angular/partials/githubUser.partial.html

@@ -1,5 +1,4 @@
-<div class="row text-center">
-	<h1> Github User Data </h1>
+<div class="row text-center"> <h1> Github User Data </h1>
 </div>
 
 <div class="col-lg-12">