Skip to content
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

Merged
merged 1 commit into from Jan 15, 2016
Merged

Conversation

dvoytenko
Copy link
Contributor

No description provided.

@@ -0,0 +1,60 @@
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@erwinmombay
Copy link
Member

@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}}!
Copy link

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"

dvoytenko added a commit that referenced this pull request Jan 15, 2016
Standard action to hide elements
@dvoytenko dvoytenko merged commit 4d1ba58 into ampproject:master Jan 15, 2016
@dvoytenko dvoytenko deleted the access17c branch January 15, 2016 02:22
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.

None yet

2 participants