OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/enterprises/_current.html.erb

38 lines
1.6 KiB

<div class="enterprise--active-token">
<div class="attributes-group">
<div class="attributes-key-value">
<div class="attributes-key-value--key"><%= EnterpriseToken.human_attribute_name(:subscriber) %></div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><%= @current_token.subscriber %></span>
</div>
</div>
<div class="attributes-key-value--key"><%= EnterpriseToken.human_attribute_name(:mail) %></div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><%= @current_token.mail %></span>
</div>
</div>
<div class="attributes-key-value--key"><%= EnterpriseToken.human_attribute_name(:starts_at) %></div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><%= format_date @current_token.starts_at %></span>
</div>
</div>
<% if @current_token.will_expire? %>
<div class="attributes-key-value--key"><%= EnterpriseToken.human_attribute_name(:expires_at) %></div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><%= format_date @current_token.expires_at %></span>
</div>
</div>
<% end %>
</div>
</div>
</div>
<%= form_tag({ action: :destroy },
method: :delete,
class: 'confirm-form-submit') do %>
<%= styled_button_tag t(:button_delete), type: 'submit', class: '-with-icon icon-delete' %>
<% end %>