<p> Open Group </p>

<p> Welcome to <%= @open_group.name %> group </p>

<p> Open Group Name: <%= @open_group.name %> </p>
<p> Open Group Description: <%= @open_group.description %> </p>


<p> Open Group Admin's Username: <%= @group_admin %> </p>

<p> -------------------------------- </p>

<% if not @has_joined %>

  <form method="POST" action="/join_open_group/<%= @open_group.name %>">

    <button type="submit">Join <%= @open_group.name %> group</button>

  </form>

<% else %>

  <form method="POST" action="/leave_open_group/<%= @open_group.name %>">

    <button type="submit">Join <%= @open_group.name %> group</button>

  </form>

<% end %>

<p> -------------------------------- </p>



<p> Open Group </p>

<p> Welcome to <%= @open_group.name %> group </p>

<p> Open Group Name: <%= @open_group.name %> </p>
<p> Open Group Description: <%= @open_group.description %> </p>


<p> Open Group Admin's Username: <%= @group_admin %> </p>

<p> -------------------------------- </p>

<% if not @has_joined %>

  <form method="POST" action="/join_open_group/<%= @open_group.name %>">

    <button type="submit">Join <%= @open_group.name %> group</button>

  </form>

<% else %>

  <form method="POST" action="/leave_open_group/<%= @open_group.name %>">

    <button type="submit">Leave <%= @open_group.name %> group</button>

  </form>

<% end %>

<p> -------------------------------- </p>



Add leave open group button.
Add leave open group button.
