Skip to content

Commit

Permalink
Move the No timeline warning card
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Berggren committed Oct 29, 2014
1 parent dbae363 commit a8f8b24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 7 additions & 8 deletions timesketch/apps/ui/templates/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ <h4 class="modal-title" id="myModalLabel">Save this view</h4>
</div>
</div>


{% if not sketch.timelines.all %}
<div class="card card-alert">
There are no timelines added to this sketch.
<a style="color:#fff;font-weight:bold;text-decoration:underline" href="timelines/add/">Add a timeline</a> to get started.
</div>
{% endif %}

<!-- Search card -->
<div class="card">
<form class="form-inline" ng-submit="search()">
Expand Down Expand Up @@ -99,6 +91,13 @@ <h4 class="modal-title" id="myModalLabel">Save this view</h4>
</form>
</div>

{% if not sketch.timelines.all %}
<div class="card card-alert">
There are no timelines added to this sketch.
<a style="color:#fff;font-weight:bold;text-decoration:underline" href="timelines/add/">Add a timeline</a> to get started.
</div>
{% endif %}

<!-- Timeline picker card -->
<div ng-show="multipleTimelines" class="card" style="overflow: hidden; position: relative;">
<button class="btn btn-default" filter="filter" search="search" meta="meta" index-enabler>Enable all</button>
Expand Down
14 changes: 7 additions & 7 deletions timesketch/apps/ui/templates/sketch.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ <h4 class="modal-title" id="myModalLabel">Sharing is caring</h4>
</div>
</div>

{% if not sketch.timelines.all %}
<div class="card card-alert">
There are no timelines added to this sketch.
<a style="color:#fff;font-weight:bold;text-decoration:underline" href="timelines/add/">Add a timeline</a> to get started.
</div>
{% endif %}

<div class="card">
<h3>{{ sketch.title }}</h3>

Expand All @@ -95,6 +88,13 @@ <h3>{{ sketch.title }}</h3>

</div>

{% if not sketch.timelines.all %}
<div class="card card-alert">
There are no timelines added to this sketch.
<a style="color:#fff;font-weight:bold;text-decoration:underline" href="timelines/add/">Add a timeline</a> to get started.
</div>
{% endif %}

{% if views %}
<div class="card">
<table class="table table-hover">
Expand Down

0 comments on commit a8f8b24

Please sign in to comment.