Skip to content

Commit

Permalink
Fixes publiclab#11363: Added Store button on wiki page
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaVanwari committed Aug 23, 2022
1 parent 4f3503d commit b6ea839
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/tag/_miniCard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<% elsif !tag.name.include? ':' %>
<a class="pull-right btn btn-primary requireLogin" href='/subscribe/tag/<%= tag.name %>'><%= translation('tag.show.follow') %></a>
<% end %>
<a class="pull-left btn btn-outline-secondary requireLogin" href="/tag/<%= LINKS["tags"]["tag"] %>">Store<i class="fa fa-shopping-cart "></i></a>
</div>
</div>
<br />
1 change: 1 addition & 0 deletions config/initializers/load_links.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LINKS = YAML.load(File.read('#{Rails.root}/config/links.yml'))
3 changes: 3 additions & 0 deletions config/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
tags:
tag: "one"

0 comments on commit b6ea839

Please sign in to comment.