Skip to content

Commit ea5b29f

Browse files
committed
improve info page
1 parent 83c5049 commit ea5b29f

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

src/Darryldecode/Backend/Components/Dashboard/Views/info.blade.php

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@
1313
<div class="panel-body">
1414
<table class="table table-bordered">
1515
<tr>
16-
<td>Version</td>
17-
<td>0.1</td>
16+
<td>Current Version</td>
17+
<td><label class="label label-info">0.1</label></td>
1818
</tr>
1919
<tr>
2020
<td>Details</td>
21-
<td>Initial Release.</td>
21+
<td>Pre-Release</td>
22+
</tr>
23+
<tr>
24+
<td>Documentation:</td>
25+
<td>
26+
<a href="http://laravelbackend.com/docs/1.0/?page=installation.php" target="_blank">http://laravelbackend.com/docs/1.0/?page=installation.php</a>
27+
</td>
2228
</tr>
2329
</table>
2430
</div>
@@ -32,7 +38,33 @@
3238
</h3>
3339
</div>
3440
<div class="panel-body">
35-
some..
41+
<ul class="list-group">
42+
<li data-ng-repeat="r in releases" class="list-group-item">
43+
<table class="table table-striped">
44+
<tr>
45+
<td>Version:</td>
46+
<td>
47+
<label class="label label-info">@{{::r.tag_name}}</label> | <b>@{{::r.name}}</b>
48+
</td>
49+
</tr>
50+
<tr>
51+
<td>Details:</td>
52+
<td>@{{::r.body}}</td>
53+
</tr>
54+
<tr>
55+
<td>Author:</td>
56+
<td>
57+
<img class="img-circle" data-ng-src="@{{::r.author.avatar_url}}" style="width: 20px;">
58+
<a href="@{{::r.author.login}}" target="_blank"><small>@{{::r.author.login}}</small></a>
59+
</td>
60+
</tr>
61+
<tr>
62+
<td>Release Link:</td>
63+
<td><a href="@{{::r.html_url}}" target="_blank">@{{::r.html_url}}</a></td>
64+
</tr>
65+
</table>
66+
</li>
67+
</ul>
3668
</div>
3769
</div>
3870
</div>

src/Darryldecode/Backend/Public/backend/cb/app/dashboard/controller.info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ angular.module('cb.dashboard').controller('DashboardInfoController', ['$scope','
55
$scope.releases = [];
66

77
DashboardFactory.getReleases().then(function(success) {
8-
console.log(success);
8+
$scope.releases = success.data;
99
}, function(error) {
1010
console.log(error);
1111
});

0 commit comments

Comments
 (0)