-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1244 from dradis/ui-dedup
Simplify Pro sync for Tylium
- Loading branch information
Showing
10 changed files
with
139 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,10 @@ def tags | |
Tag.all | ||
end | ||
|
||
def team | ||
nil | ||
end | ||
|
||
def testers_for_mentions | ||
User.all | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
<span class="dropdown-item dots-dropdown-header" tabindex="-1">Send to...</span> | ||
<% sync_plugins = Dradis::Plugins::with_feature(:issue_sync) %> | ||
|
||
<% cache ['send-to', sync_plugins.map(&:plugin_name)] do %> | ||
<% if sync_plugins.any? %> | ||
<% sync_plugins.each do |plugin| %> | ||
<%= | ||
plugin_path = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.deconstantize(plugin.name)) | ||
render partial: "#{plugin_path}/issues/send_to_menu" | ||
%> | ||
<% end %> | ||
<% end %> | ||
<% unless defined?(Dradis::Pro) && defined?(Dradis::Pro::Plugins::Issuelib) %> | ||
<% if sync_plugins.any? %> | ||
<div class="divider"></div> | ||
<% end %> | ||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="issuelib" data-url="https://dradis.com/pro/pages/issuelib.html"><i class="fa-solid fa-book fa-fw"></i> Built-in IssueLibrary</a> | ||
<% if sync_plugins.any? %> | ||
<% sync_plugins.each do |plugin| %> | ||
<%= | ||
plugin_path = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.deconstantize(plugin.name)) | ||
render partial: "#{plugin_path}/issues/send_to_menu" | ||
%> | ||
<% end %> | ||
<% unless defined?(Dradis::Pro) && defined?(Dradis::Pro::Plugins::Remediationtracker) %> | ||
<% if sync_plugins.any? %> | ||
<div class="divider"></div> | ||
<% end %> | ||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="remediation" data-url="https://dradis.com/tools/remediation.html"><i class="fa-solid fa-tasks fa-fw"></i> Built-in Remediation Tracker</a> | ||
<% end %> | ||
|
||
<% unless defined?(Dradis::Pro) %> | ||
<% if sync_plugins.any? %> | ||
<div class="divider"></div> | ||
<% end %> | ||
|
||
|
||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="issuelib" data-url="https://dradis.com/pro/pages/issuelib.html"><i class="fa-solid fa-book fa-fw"></i> Built-in IssueLibrary</a> | ||
|
||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="remediation" data-url="https://dradis.com/tools/remediation.html"><i class="fa-solid fa-tasks fa-fw"></i> Built-in Remediation Tracker</a> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="navbar-brand" data-behavior="navbar-brand"> | ||
<% if current_project.team %> | ||
<%= link_to current_project.team.name, main_app.team_path(current_project.team), data: { turbolinks: false }, class: 'project-title' %> | ||
<i class="fa-solid fa-angle-right"></i> | ||
<% end %> | ||
|
||
<%= link_to current_project.name, main_app.project_path(current_project), class: 'project-title' %> | ||
|
||
<% if defined?(Dradis::Pro) %> | ||
<%= link_to main_app.projects_path, class: 'change-project-link', data: { turbolinks: false }, title: 'Change Project' do %> | ||
<i class="fa-solid fa-random fa-fw"></i> Change Project | ||
<% end %> | ||
<% else %> | ||
<%= link_to 'javascript:void(0)', class: 'js-try-pro change-project-link', data: { term: 'projects', url: 'https://dradis.com/pro/pages/projects.html'}, title: 'Change Project' do %> | ||
<i class="fa-solid fa-random fa-fw"></i> Change Project | ||
<% end %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<li class="nav-item dropdown"> | ||
<a href="javascript:void(0)" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" data-behavior="close-collapse" title="Help"> | ||
<i class="fa-solid fa-question fa-lg"></i> Help | ||
</a> | ||
|
||
<div class="dropdown-menu dropdown-menu-end"> | ||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="training-course" data-url="https://dradis.com/academy/dradis-course/?utm_source=ce&utm_medium=app&utm_campaign=try-pro&utm_term=training-course">Free training course</a> | ||
<a href="https://dradis.com/support/guides/projects/?utm_source=ce&utm_medium=app" target="_blank" class="dropdown-item">Projects 101</a> | ||
<a href="https://dradis.com/support/guides/troubleshooting/?utm_source=ce&utm_medium=app" target="_blank" class="dropdown-item">Troubleshooting</a> | ||
<div class="divider"></div> | ||
|
||
<% if defined?(Dradis::Pro) %> | ||
<a href="javascript:void(0)" class="dropdown-item" data-behavior="js-hs-beacon">Contact support</a> | ||
<a href="https://dradispro.slack.com/" target="_blank" class="dropdown-item">Chat on Slack</a> | ||
<% else %> | ||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="contact-support" data-url="https://dradis.com/pro/pages/support.html">Contact support</a> | ||
<a href="https://dradis.slack.com/" target="_blank" class="dropdown-item">Chat on Slack</a> | ||
<% end %> | ||
|
||
<a href="https://github.com/dradis/dradis-ce/issues" target="_blank" class="dropdown-item">Report an issue</a> | ||
<a href="http://dradis.com/support/" target="_blank" class="dropdown-item">Support website</a> | ||
<a href="https://discuss.dradisframework.org" target="_blank" class="dropdown-item">Community forums</a> | ||
<div class="divider"></div> | ||
<a href="https://dradis.com/careers/" target="_blank" class="dropdown-item">We're hiring</a> | ||
|
||
<% unless defined?(Dradis::Pro) %> | ||
<div class="divider"></div> | ||
<a href="javascript:void(0)" class="js-try-pro dropdown-item" data-term="try-pro" data-url="https://dradis.com/pro/pages/upgrade.html">Try Dradis Pro</a> | ||
<% end %> | ||
</div> | ||
</li> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters