Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
More link adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Jun 17, 2024
1 parent 3a09d13 commit d88e71b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 55 deletions.
53 changes: 2 additions & 51 deletions _includes/compare-boards-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{% endif %}
<tr>
<td class="board" data-board="{{board.url | replace: "/product/", "" | replace: "/", ""}}">
{{board.title}} {% if board.product_buy_links %}<a class="btn btn-default btn-xs" href="{{board.url}}">Buy Now</a>{% endif %} <i
{{board.title}} <a class="btn btn-default btn-xs" href="{{board.url}}">Details</a> <i
data-toggle="tooltip" data-placement="top" title="Remove Board" class="icon-cancel"></i>
</td>
{% assign product-url = board.permalink | split: "/" %}
Expand All @@ -56,28 +56,6 @@
{% picture card_block_image {{image_path}} --alt {{image_alt}} %}
</a>
</td>
<td class="board" data-attr="price" data-board="{{board.url | replace: "/product/", "" | replace: "/", ""}}"
class="data">
<div class="btn-group" role="group">
{% if board.product_buy_links %}
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Buy Links
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{% for buy_link in board.product_buy_links %}
<li {% if buy_link.from %}data-toggle="tooltip" data-placement="right" title="Buy from {{buy_link.from}}"
{% endif %}>
<a href="{{ buy_link.link-url }}">
{{buy_link.from}}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</td>
{% for attr in tags %}
{% assign found = "false" %}
{% for each in board.attributes %}
Expand Down Expand Up @@ -107,7 +85,7 @@
<th data-attr="attr" class="attr attr-heading"></th>
{% for board in products_array %}
<th class="board" data-board="{{board.url | replace: "/product/", "" | replace: "/", ""}}">
{{board.title}} <a class="btn btn-default btn-xs" href="{{board.url}}">Buy Now</a> <i
{{board.title}} <a class="btn btn-default btn-xs" href="{{board.url}}">Details</a> <i
data-toggle="tooltip" data-placement="top" title="Remove Board" class="icon-cancel"></i>
</th>
{% endfor %}
Expand Down Expand Up @@ -135,33 +113,6 @@
</td>
{% endfor %}
</tr>
<tr data-attr-row="price">
<td class="attr attr-heading" data-attr="price"> Price <i data-toggle="tooltip"
data-placement="top" title="Remove Attribute" class="icon-cancel removeAttribute"></i>
</td>
{% for board in products_array %}
<td class="board" data-attr="price" data-board="{{board.url | replace: "/product/", "" | replace: "/", ""}}"
class="data">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Buy Links
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{% for buy_link in board.product_buy_links %}
<li {% if buy_link.from %}data-toggle="tooltip" data-placement="right" title="Buy from {{buy_link.from}}"
{% endif %}>
<a href="{{ buy_link.link-url }}">
{{buy_link.from}}
</a>
</li>
{% endfor %}
</ul>
</div>
</td>
{% endfor %}
</tr>
{% for attr in tags %}
<tr data-attr-row="{{attr}}">
<td data-attr="{{attr}}" class="attr attr-heading">{{attr}} <i data-toggle="tooltip"
Expand Down
4 changes: 0 additions & 4 deletions _includes/products/featured_products.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<div class="col col-12 col-sm-4 featured-product">
<a href="{{product.url}}">
<h3 class="featured-product-title text-dark">{{product.title}}</h3>
{% if product.product_buy_links[0].link-price %}<span class="featured-product-price">From {{product.product_buy_links[0].link-price}}</span>{% endif %}
{% capture image_path %}_product/{{product.product_specification}}/{{url-slug}}/{{ product_image }}{% endcapture %}
{% capture image_alt %}{{ product.title }} image{% endcapture %}
{% picture card_block_image {{image_path}} --alt {{image_alt}} %}
Expand All @@ -30,7 +29,6 @@ <h3 class="featured-product-title text-dark">{{product.title}}</h3>
<div class="col col-12 col-sm-4 featured-product bottom">
<a href="{{product.url}}">
<h3 class="featured-product-title text-dark">{{product.title}}</h3>
{% if product.product_buy_links[0].link-price %}<span class="featured-product-price">From {{product.product_buy_links[0].link-price}}</span>{% endif %}
{% capture image_path %}_product/{{product.product_specification}}/{{url-slug}}/{{ product_image }}{% endcapture %}
{% capture image_alt %}{{ product.title }} image{% endcapture %}
{% picture card_block_image {{image_path}} --alt {{image_alt}} %}
Expand Down Expand Up @@ -63,8 +61,6 @@ <h3 class="featured-product-title text-dark">{{product.title}}</h3>
<div class="owl-item__inner">
<div class="col col-12">
<h3 class="featured-product-title">{{product.title}}</h3>
{% if product.product_buy_links[0].link-price %}<span class="featured-product-price">From
{{product.product_buy_links[0].link-price}}</span>{% endif %}
{% capture image_path %}_product/{{product.product_specification}}/{{url-slug}}/{{ product_image }}{% endcapture %}
{% capture image_alt %}{{ product.title }} image{% endcapture %}
{% picture card_block_image {{image_path}} --alt {{image_alt}} %}
Expand Down

0 comments on commit d88e71b

Please sign in to comment.