-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standard action to hide elements #1434
Conversation
@@ -0,0 +1,60 @@ | |||
/** | |||
* Copyright 2015 The AMP HTML Authors. All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@dvoytenko LGTM. (per minor nits) |
@@ -189,10 +189,11 @@ <h1 itemprop="headline">Lorem Ipsum</h1> | |||
</div> | |||
</div> | |||
|
|||
<section amp-access="views > 0" amp-access-hide class="meter-section"> | |||
<section id="meter-notif" amp-access="views > 0" amp-access-hide class="meter-section"> | |||
<template amp-access-template type="amp-mustache"> | |||
You are viewing article {{views}} of {{maxViews}}! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit for complete example: if views > maxViews it can say "You have read your {{maxViews}} free articles. Please login to read more"
Standard action to hide elements
No description provided.