Skip to content

Commit

Permalink
[hotfix] mistakes slipped in
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jun 28, 2016
1 parent 759c8d5 commit a016d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions caravel/templates/caravel/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@
{% endfor %}
</select>
</span>
<span class="label-bordered">
<a href="{{ datasource.url }}" data-toggle="tooltip" title="Edit/configure datasource">
&nbsp;
<i class="fa fa-edit"></i>&nbsp;
</a>
</span>
<a href="{{ datasource.url }}" class="btn btn-default-outline" data-toggle="tooltip" title="Edit/configure datasource">
<i class="fa fa-edit"></i>&nbsp;
</a>
<span title="Visualization Type" data-toggle="tooltip">
{{ form.get_field("viz_type")(class_="select2-with-images") }}
</span>
{% if slice %}
<span class="label-bordered" title="Slice" data-toggle="tooltip" data-placement="bottom">
<span class="btn btn-default notbtn" title="Slice" data-toggle="tooltip" data-placement="bottom">
<span class="favstar" class_name="Slice" obj_id="{{ slice.id }}"></span>
{{ slice.slice_name }}
<a class="" href="/slicemodelview/edit/{{ slice.id }}" data-toggle="tooltip" title="Edit">
Expand Down
4 changes: 2 additions & 2 deletions caravel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ def save_or_overwrite_slice(
dash = None
if request.args.get('add_to_dash') == 'existing':
dash = (
db.session.query(models.Dashoard)
db.session.query(models.Dashboard)
.filter_by(id=int(request.args.get('save_to_dashboard_id')))
.one()
)
Expand All @@ -918,7 +918,7 @@ def save_or_overwrite_slice(
dash.dashboard_title),
"info")
elif request.args.get('add_to_dash') == 'new':
dash = models.Dashoard(
dash = models.Dashboard(
dashboard_title=request.args.get('new_dashboard_name'),
owners=[g.user] if g.user else [])
flash(
Expand Down

0 comments on commit a016d18

Please sign in to comment.