diff options
Diffstat (limited to 'app/components')
-rw-r--r-- | app/components/app/app.html | 10 | ||||
-rw-r--r-- | app/components/plan-list/plan-list.html | 7 | ||||
-rw-r--r-- | app/components/plan-new/plan-new.html | 8 | ||||
-rw-r--r-- | app/components/plan-view/plan-view.html | 7 | ||||
-rw-r--r-- | app/components/plan-view/plan-view.ts | 3 |
5 files changed, 11 insertions, 24 deletions
diff --git a/app/components/app/app.html b/app/components/app/app.html index a8a1969..b87937f 100644 --- a/app/components/app/app.html +++ b/app/components/app/app.html @@ -1,5 +1,13 @@ +<nav> + <div class="nav-container"> + <a class="btn btn-primary btn-lg pull-right" [routerLink]="['/PlanNew']">new plan</a> + <a [routerLink]="['PlanList']">plans</a> + </div> +</nav> + <router-outlet></router-outlet> -<footer>PEV is made by + +<footer><strong>pev</strong> is made by <a href="http://tatiyants.com/">Alex Tatiyants</a> <a href="https://twitter.com/AlexTatiyants"><i class="fa fa-twitter"></i></a> <a href="https://github.com/AlexTatiyants"><i class="fa fa-github"></i></a> diff --git a/app/components/plan-list/plan-list.html b/app/components/plan-list/plan-list.html index a2f1a9d..9a75ed9 100644 --- a/app/components/plan-list/plan-list.html +++ b/app/components/plan-list/plan-list.html @@ -1,10 +1,3 @@ -<nav> - <div class="nav-container"> - <a class="btn btn-primary btn-lg pull-right" [routerLink]="['/PlanNew']">create</a> - <a [routerLink]="['PlanList']">plans</a> - </div> -</nav> - <div class="page"> <div class="hero-container" *ngIf="plans.length === 0"> Welcome to PEV! Please <a [routerLink]="['/PlanNew']">submit</a> a plan for visualization diff --git a/app/components/plan-new/plan-new.html b/app/components/plan-new/plan-new.html index f9babb6..ba65d99 100644 --- a/app/components/plan-new/plan-new.html +++ b/app/components/plan-new/plan-new.html @@ -1,11 +1,3 @@ -<nav> - <div class="nav-container"> - <a [routerLink]="['PlanList']">plans</a> - <span class="text-muted"> | </span> - create plan - </div> -</nav> - <div class="page"> <span class="text-muted">For best results, use EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON)</span> <div> diff --git a/app/components/plan-view/plan-view.html b/app/components/plan-view/plan-view.html index ab9b7dc..8ebe525 100644 --- a/app/components/plan-view/plan-view.html +++ b/app/components/plan-view/plan-view.html @@ -32,13 +32,8 @@ </ul> </div> -<nav> - <div class="nav-container"> - <a [routerLink]="['PlanList']">plans</a><span class="text-muted"> / </span>{{plan.name}} - </div> -</nav> - <div class="page page-stretch"> + <h2>{{plan.name}}</h2> <div *ngIf="viewOptions.showPlanStats" class="plan-stats"> <div> <span class="stat-value">{{executionTime}}</span> diff --git a/app/components/plan-view/plan-view.ts b/app/components/plan-view/plan-view.ts index ab4e6a3..1ec3855 100644 --- a/app/components/plan-view/plan-view.ts +++ b/app/components/plan-view/plan-view.ts @@ -1,6 +1,5 @@ import {Component, OnInit} from 'angular2/core'; -import {RouteParams} from 'angular2/router'; -import {ROUTER_DIRECTIVES} from 'angular2/router'; +import {ROUTER_DIRECTIVES, RouteParams} from 'angular2/router'; import {IPlan} from '../../interfaces/iplan'; import {PlanService} from '../../services/plan-service'; |