Skip to content

Instantly share code, notes, and snippets.

@mkezfarias
Last active February 17, 2020 22:57
Show Gist options
  • Save mkezfarias/277ef9c5add682f5c335c5c44e857aff to your computer and use it in GitHub Desktop.
Save mkezfarias/277ef9c5add682f5c335c5c44e857aff to your computer and use it in GitHub Desktop.
<%# This is the title, responsive for small screens and bigger screens %>
<h1 class= "h3 ml-3 my-5 text-light d-block d-md-none" > Select a topic to <br> start your call </h1>
<h1 class= "h3 ml-3 my-5 text-light d-md-block d-none" > Select a topic to start your call </h1>
<%# This is the list of the subjects that we got from the @subjects variable, and we are creating a table with all of them! %>
<%# All of the sessions will use the same room for now to keep it simpler %>
<ul cass="list-group list-group-flush bg-transparent">
<% @subjects.each do |subject| %>
<li class = "list-group-item bg-transparent col-10 col-md-5 ">
<%= link_to subject.title, sessions_show_path(subject: subject), method: :post, class: "text-light h5" %>
<p class="text-warning mb-1"> Mentor: <%= subject.teacher %> </p>
</li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment