OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
<%#-- copyright
OpenProject is an open source project management software.
Copyright (C) the OpenProject GmbH
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
Copyright (C) 2006-2013 Jean-Philippe Lang
Copyright (C) 2010-2013 the ChiliProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="attributes-group" id="rss-token-section">
<div class="attributes-group--header">
<div class="attributes-group--header-container">
<h3 class="attributes-group--header-text"><%= t("my_account.access_tokens.rss.title") %></h3>
</div>
</div>
<div>
<p>
<%= t("my_account.access_tokens.rss.text_hint") %>
</p>
<% if Setting.feeds_enabled? %>
<% if rss_token %>
<div class="generic-table--container">
<div class="generic-table--results-container">
<table class="generic-table" data-controller="table-highlighting">
<%= render partial: "token_table_header",
locals: {
column_headers: [
t("attributes.name"),
User.human_attribute_name(:created_at),
t("my_account.access_tokens.headers.expiration")
]
} %>
<tbody>
<tr>
<td class="-w-rel-60" data-test-selector="rss-token-row-name"><%= t("my_account.access_tokens.rss.static_token_name") %></td>
<td>
<span title="<%= format_time(rss_token.created_at) %>">
<%= format_time(rss_token.created_at.to_s) %>
</span>
</td>
<td><%= t("my_account.access_tokens.indefinite_expiration") %></td>
<td class="buttons">
<%= link_to "",
{ action: "revoke_rss_key" },
data: {
turbo_method: :delete,
turbo_confirm: t("my_account.access_tokens.simple_revoke_confirmation"),
test_selector: "rss-token-revoke"
},
class: "icon icon-delete" %>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<% else %>
<%=
render Primer::Beta::Link.new(href: generate_rss_key_my_access_tokens_path, data: { turbo_method: :post }, test_selector: "rss-token-add") do |link|
link.with_leading_visual_icon(icon: :plus)
t("my_account.access_tokens.rss.static_token_name")
end
%>
<% end %>
<% else %>
<div tabindex="0" class="-info op-toast">
<div role="alert" aria-atomic="true" class="op-toast--content">
<p>
<span><%= t("my_account.access_tokens.rss.disabled_text") %></span>
</p>
</div>
</div>
<% end %>
</div>
</div>