Skip to content

Support or syntax#6

Merged
valerymelou merged 2 commits intovalerymelou:masterfrom
paulovitin:support-or-syntax
Apr 25, 2018
Merged

Support or syntax#6
valerymelou merged 2 commits intovalerymelou:masterfrom
paulovitin:support-or-syntax

Conversation

@paulovitin
Copy link
Copy Markdown
Contributor

Why
Sometimes you has a menu and a tab menu in internal page, and you need check the tab menu and the parent menu.

How
Add to the view-names string a support to || (two pipes), we can write checks like bellow:

<a class="{% active_link 'view-tab-one || view-tab-two' %}">Menu</a>
<a class="{% active_link 'view-tab-one' %}">Tab One</a>

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 24, 2018

Codecov Report

Merging #6 into master will increase coverage by 1.52%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   89.65%   91.17%   +1.52%     
==========================================
  Files           3        3              
  Lines          29       34       +5     
  Branches        6        8       +2     
==========================================
+ Hits           26       31       +5     
  Misses          3        3
Impacted Files Coverage Δ
active_link/templatetags/active_link_tags.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 902ed35...ce48b2d. Read the comment docs.

@valerymelou valerymelou merged commit 34c430a into valerymelou:master Apr 25, 2018
@valerymelou
Copy link
Copy Markdown
Owner

Nice one. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants