Last active
May 27, 2020 19:51
-
-
Save frostyblok/98a6e1db40a305efce7c8e465d33f1c0 to your computer and use it in GitHub Desktop.
Subscription Display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****** app/assets/stylesheets/admins/subscriptions.css ****/ | |
body { | |
@media (min-width: 768px) { | |
.subscription { | |
display: grid; | |
} | |
} | |
@media (min-width: 1024px) { | |
.subscription { | |
display: flex; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- app/views/admins/subscriptions.html.erb --> | |
<div class="subscription"> | |
<% @subscriptions.each do |subscription| %> | |
<div> | |
<div><%= subscription.email %></div> | |
<div><%= subscription.plan.name %></div> | |
</div> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment