Skip to content

Commit

Permalink
uniform button style in recipe view
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Aug 9, 2020
1 parent b39a55e commit 82497c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cookbook/templates/recipe_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ <h3>{{ recipe.name }} {{ rating|safe }}</h3>
<br/>
{% endif %}



<div class="row" v-if="recipe && has_ingredients">
<div class="row" v-if="recipe && has_ingredients"> <!-- TODO duplicate code remove -->
<div class="col-md-6 order-md-1 col-sm-12 order-sm-2 col-12 order-2">
<div class="card border-primary">
<div class="card-body">
Expand Down Expand Up @@ -170,7 +168,7 @@ <h4 class="card-title">{% trans 'Ingredients' %}</h4>
</td>
<td style="vertical-align: middle!important;">
<template v-if="i.note">
<b-button v-b-popover.hover="i.note" class="btn btn-sm d-print-none"><i class="fas fa-info"></i></b-button>
<b-button v-b-popover.hover="i.note" class="btn btn-sm d-print-none"><i class="fas fa-info"></i></b-button>

<div class="d-none d-print-block">
<i class="far fa-comment-alt"></i> [[i.note]]
Expand Down Expand Up @@ -242,7 +240,7 @@ <h3>{% trans 'Instructions' %}</h3>
style="margin-top: 1vh">
<div class="col-md-6">
<table class="table table-sm">
<template v-for="i in recipe.steps[{{ forloop.counter0 }}].ingredients">
<template v-for="i in recipe.steps[{{ forloop.counter0 }}].ingredients"> <!-- TODO duplicate code remove -->

<template v-if="i.is_header">
<tr>
Expand Down Expand Up @@ -285,7 +283,7 @@ <h3>{% trans 'Instructions' %}</h3>
</td>
<td style="vertical-align: middle!important;">
<template v-if="i.note">
<b-button v-b-popover.hover="i.note" class="btn btn-light btn-sm d-print-none"><i class="fas fa-info"></i></b-button>
<b-button v-b-popover.hover="i.note" class="btn btn-sm d-print-none"><i class="fas fa-info"></i></b-button>
<div class="d-none d-print-block">
<i class="far fa-comment-alt"></i> [[i.note]]
</div>
Expand Down

0 comments on commit 82497c7

Please sign in to comment.