forked from External/greenlight
		
	modify invite join on root page to match room page
This commit is contained in:
		@@ -14,59 +14,34 @@
 | 
			
		||||
%>
 | 
			
		||||
 | 
			
		||||
<div <%= "hidden" if hidden %> class="meeting-url-wrapper">
 | 
			
		||||
  <div class="<%= 'input-group' unless @user %>">
 | 
			
		||||
    <div class="meeting-url-group">
 | 
			
		||||
      <input type="text" class="form-control meeting-url"/>
 | 
			
		||||
    </div>
 | 
			
		||||
  <div class="meeting-url-group">
 | 
			
		||||
    <input type="text" class="form-control meeting-url"/>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
    <% if current_user %>
 | 
			
		||||
      <% body = t('meeting_invite.signed_in.body', user: current_user.name) %>
 | 
			
		||||
      <% subject = t('meeting_invite.signed_in.subject', user: current_user.name) %>
 | 
			
		||||
    <% else %>
 | 
			
		||||
      <% body = t('meeting_invite.not_signed_in.body') %>
 | 
			
		||||
      <% subject = t('meeting_invite.not_signed_in.subject') %>
 | 
			
		||||
    <% end %>
 | 
			
		||||
  <% if current_user %>
 | 
			
		||||
    <% body = t('meeting_invite.signed_in.body', user: current_user.name) %>
 | 
			
		||||
    <% subject = t('meeting_invite.signed_in.subject', user: current_user.name) %>
 | 
			
		||||
  <% else %>
 | 
			
		||||
    <% body = t('meeting_invite.not_signed_in.body') %>
 | 
			
		||||
    <% subject = t('meeting_invite.not_signed_in.subject') %>
 | 
			
		||||
  <% end %>
 | 
			
		||||
 | 
			
		||||
    <% if @user %>
 | 
			
		||||
      <div class="center-block meeting-url-button-group">
 | 
			
		||||
        <button type="button" class="btn btn-default meeting-url-copy has-tooltip pull-left"
 | 
			
		||||
          title="<%= t('url_copy_explanation') %>"
 | 
			
		||||
          data-copied-hint="<%= t('copied') %>"
 | 
			
		||||
          data-copy-error="<%= t('copy_error') %>"
 | 
			
		||||
          data-copy-hint="<%= t('url_copy_explanation') %>"
 | 
			
		||||
        >
 | 
			
		||||
          <%= icon('clipboard') %>
 | 
			
		||||
        </button>
 | 
			
		||||
  <div class="center-block meeting-url-button-group">
 | 
			
		||||
    <button type="button" class="btn btn-default meeting-url-copy has-tooltip pull-left"
 | 
			
		||||
      title="<%= t('url_copy_explanation') %>"
 | 
			
		||||
      data-copied-hint="<%= t('copied') %>"
 | 
			
		||||
      data-copy-error="<%= t('copy_error') %>"
 | 
			
		||||
      data-copy-hint="<%= t('url_copy_explanation') %>"
 | 
			
		||||
    >
 | 
			
		||||
      <%= icon('clipboard') %>
 | 
			
		||||
    </button>
 | 
			
		||||
 | 
			
		||||
        <button type="button" class="btn btn-default meeting-invite has-tooltip pull-right"
 | 
			
		||||
          title="<%= t('meeting_invite.explanation') %>"
 | 
			
		||||
          data-invite-body="<%= body %>"
 | 
			
		||||
          data-invite-subject="<%= subject %>"
 | 
			
		||||
        >
 | 
			
		||||
          <%= icon('envelope-o') %>
 | 
			
		||||
        </button>
 | 
			
		||||
      </div>
 | 
			
		||||
    <% else %>
 | 
			
		||||
      <span class="input-group-btn">
 | 
			
		||||
 | 
			
		||||
        <button type="button" class="btn btn-default meeting-url-copy has-tooltip"
 | 
			
		||||
        title="<%= t('url_copy_explanation') %>"
 | 
			
		||||
        data-copied-hint="<%= t('copied') %>"
 | 
			
		||||
        data-copy-error="<%= t('copy_error') %>"
 | 
			
		||||
        data-copy-hint="<%= t('url_copy_explanation') %>"
 | 
			
		||||
        >
 | 
			
		||||
          <%= icon('clipboard') %>
 | 
			
		||||
      </button>
 | 
			
		||||
 | 
			
		||||
      <button type="button" class="btn btn-default meeting-invite has-tooltip"
 | 
			
		||||
        title="<%= t('meeting_invite.explanation') %>"
 | 
			
		||||
        data-invite-body="<%= body %>"
 | 
			
		||||
        data-invite-subject="<%= subject %>"
 | 
			
		||||
      >
 | 
			
		||||
        <%= icon('envelope-o') %>
 | 
			
		||||
      </button>
 | 
			
		||||
 | 
			
		||||
  </span>
 | 
			
		||||
    <% end %>
 | 
			
		||||
    <button type="button" class="btn btn-default meeting-invite has-tooltip pull-right"
 | 
			
		||||
      title="<%= t('meeting_invite.explanation') %>"
 | 
			
		||||
      data-invite-body="<%= body %>"
 | 
			
		||||
      data-invite-subject="<%= subject %>"
 | 
			
		||||
    >
 | 
			
		||||
      <%= icon('envelope-o') %>
 | 
			
		||||
    </button>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user