put links in dashboard and change some styles
This commit is contained in:
parent
c7147e6146
commit
139f950861
|
@ -12,6 +12,7 @@ Route = TravisRoute.extend
|
||||||
@get('stylesheetsManager').disable('dashboard')
|
@get('stylesheetsManager').disable('dashboard')
|
||||||
|
|
||||||
model: ->
|
model: ->
|
||||||
|
return new Ember.RSVP.Promise(->)
|
||||||
apiEndpoint = @get('config').api_endpoint
|
apiEndpoint = @get('config').api_endpoint
|
||||||
$.ajax(apiEndpoint + '/repos?member=lislis', {
|
$.ajax(apiEndpoint + '/repos?member=lislis', {
|
||||||
beforeSend: (xhr) ->
|
beforeSend: (xhr) ->
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="build-information">
|
<div class="build-information">
|
||||||
<p class="org">{{repo.owner}}</p>
|
<p class="org">{{repo.owner}}</p>
|
||||||
<p class="repo">{{repo.name}}</p>
|
<p class="repo">{{#link-to "repo" repo.owner repo.name }}{{repo.name}}{{/link-to}}</p>
|
||||||
<div class="duration">{{formatDuration repo.last_build_duration}}</div>
|
<div class="duration">{{formatDuration repo.last_build_duration}}</div>
|
||||||
<div class="finished">{{formatTime repo.last_build_finished_at}}</div>
|
<div class="finished">{{formatTime repo.last_build_finished_at}}</div>
|
||||||
<p class="build-status">#{{repo.last_build_number}} {{repo.last_build_state}}</p>
|
<p class="build-status">{{#link-to "build" repo.owner repo.name repo.last_build_id}}#{{repo.last_build_number}} {{repo.last_build_state}}{{/link-to}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="star-feature">
|
<div class="star-feature">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<div class="loading"><span>Loading</span></div>
|
<div class="loading"><span>Loading main</span></div>
|
||||||
|
|
|
@ -298,8 +298,6 @@ a {
|
||||||
opacity : 0;
|
opacity : 0;
|
||||||
visibility : hidden;
|
visibility : hidden;
|
||||||
box-shadow : 2px 1px 4px 0px rgba(148,145,138,0.4);
|
box-shadow : 2px 1px 4px 0px rgba(148,145,138,0.4);
|
||||||
-webkit-box-shadow : 2px 1px 4px 0px rgba(148,145,138,0.4);
|
|
||||||
-moz-box-shadow : 2px 1px 4px 0px rgba(148,145,138,0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#views ul li ul li {
|
#views ul li ul li {
|
||||||
|
@ -402,6 +400,10 @@ a {
|
||||||
width : 33px;
|
width : 33px;
|
||||||
border-radius : 4px 0 0 4px;
|
border-radius : 4px 0 0 4px;
|
||||||
}
|
}
|
||||||
|
// .repo a:hover,
|
||||||
|
// .build-status a:hover {
|
||||||
|
// text-decoration: underline;
|
||||||
|
// }
|
||||||
|
|
||||||
.passed {
|
.passed {
|
||||||
.build-bar {
|
.build-bar {
|
||||||
|
@ -411,11 +413,14 @@ a {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.org,
|
.org,
|
||||||
.repo,
|
.repo a,
|
||||||
.build-status {
|
.build-status a {
|
||||||
color: #3ba85d;
|
color: #3ba85d;
|
||||||
}
|
}
|
||||||
|
.repo a:focus,
|
||||||
|
.build-status a:focus {
|
||||||
|
outline: 1px dotted #3ba85d;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.failed {
|
.failed {
|
||||||
|
@ -426,10 +431,14 @@ a {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.org,
|
.org,
|
||||||
.repo,
|
.repo a,
|
||||||
.build-status {
|
.build-status a {
|
||||||
color: #d04729;
|
color: #d04729;
|
||||||
}
|
}
|
||||||
|
.repo a:focus,
|
||||||
|
.build-status a:focus {
|
||||||
|
outline: 1px dotted #d04729;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.started {
|
.started {
|
||||||
|
@ -440,10 +449,14 @@ a {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.org,
|
.org,
|
||||||
.repo,
|
.repo a,
|
||||||
.build-status {
|
.build-status a {
|
||||||
color: #848032;
|
color: #848032;
|
||||||
}
|
}
|
||||||
|
.repo a:focus,
|
||||||
|
.build-status a:focus {
|
||||||
|
outline: 1px dotted #848032;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.errored {
|
.errored {
|
||||||
|
@ -454,10 +467,14 @@ a {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.org,
|
.org,
|
||||||
.repo,
|
.repo a,
|
||||||
.build-status {
|
.build-status a {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
.repo a:focus,
|
||||||
|
.build-status a:focus {
|
||||||
|
outline: 1px dotted #999999;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile .build-information {
|
.tile .build-information {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user