match layout files
add flash display to dashbaord layout remove dashboard layout, it is basically the same as the simple layout
This commit is contained in:
parent
b338483bf1
commit
c2c8feb1f9
|
@ -3,7 +3,7 @@ import { githubCommit as githubCommitUrl } from 'travis/utils/urls';
|
|||
import config from 'travis/config/environment';
|
||||
import { hasAdminPermission, hasPushPermission } from 'travis/utils/permission';
|
||||
|
||||
export default Ember.Component.extend(Permissions, {
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'li',
|
||||
classNameBindings: ['repo.default_branch.last_build.state'],
|
||||
classNames: ['rows', 'rows--dashboard'],
|
||||
|
|
|
@ -23,10 +23,12 @@
|
|||
<h3 class="label">Default branch</h3>
|
||||
<p class="row-content color">
|
||||
{{request-icon event=repo.default_branch.last_build.event_type state=repo.default_branch.last_build.state}}
|
||||
{{repo.default_branch.name}} is {{repo.default_branch.last_build.state}}
|
||||
{{repo.default_branch.name}}
|
||||
{{#if repo.default_branch.last_build.state}}is {{repo.default_branch.last_build.state}}{{/if}}
|
||||
</p>
|
||||
</section>
|
||||
|
||||
{{#if repo.default_branch.last_build}}
|
||||
<section class="dash-last-build">
|
||||
<div>
|
||||
<h3 class="label">Last build</h3>
|
||||
|
@ -61,6 +63,7 @@
|
|||
</p>
|
||||
</div>
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
{{#if displayMenuTofu}}
|
||||
<div class="dash-menu">
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{#travis-layout layoutName="layouts/dashboard" class="dashboard"}}
|
||||
{{#travis-layout layoutName="layouts/simple" class="dashboard"}}
|
||||
{{outlet}}
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
<div class="wrapper">
|
||||
<header id="top" class="top">
|
||||
<div class="centered">
|
||||
{{render "top"}}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="centered">
|
||||
{{yield}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{{render "footer"}}
|
||||
</footer>
|
|
@ -15,6 +15,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{{render "footer"}}
|
||||
</footer>
|
||||
{{render "footer"}}
|
||||
|
|
|
@ -13,6 +13,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{{render "footer"}}
|
||||
</footer>
|
||||
{{render "footer"}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/profile" class="owner"}}
|
||||
{{#travis-layout layoutName="layouts/simple" class="owner"}}
|
||||
<header class="owner-header row">
|
||||
<div class="owner-avatar">
|
||||
<img src={{avatarURL}} alt="" width="125" height="125">
|
||||
|
|
Loading…
Reference in New Issue
Block a user