diff --git a/app/components/page-footer/component.js b/app/components/page-footer/component.js index c3df47c08..4fc815f22 100644 --- a/app/components/page-footer/component.js +++ b/app/components/page-footer/component.js @@ -7,6 +7,27 @@ export default Ember.Component.extend({ className: 'clearfix', settings: Ember.inject.service(), + access: Ember.inject.service(), + + issueBody: function() { + var str = '*Describe your issue here*\n\n\n---\n| Useful | Info |\n| :-- | :-- |\n' + + `|Versions|Rancher \`${this.get('settings.rancherVersion')||'-'}\` ` + + `Cattle: \`${this.get('settings.cattleVersion')||'-'}\` ` + + `UI: \`${this.get('settings.uiVersion')||'--'}\` |\n`; + + if ( this.get('access.enabled') ) + { + str += `|Access|\`${this.get('access.provider').replace(/config/,'')}\`, \`${this.get('access.admin') ? 'admin' : ''}\`|\n`; + } + else + { + str += '|Access|`Disabled`}|\n'; + } + + str += `|Route|\`${this.get('application.currentRouteName')}\`|\n`; + + return encodeURIComponent(str); + }.property(), actions: { showAbout() { diff --git a/app/components/page-footer/template.hbs b/app/components/page-footer/template.hbs index a518c724f..409b29f7c 100644 --- a/app/components/page-footer/template.hbs +++ b/app/components/page-footer/template.hbs @@ -1,11 +1,9 @@ -{{#if settings.rancherVersion}} - {{settings.rancherVersion}} -{{/if}} +{{if settings.rancherVersion settings.rancherVersion '(Not a Release)'}} {{#if helpEnabled}} Documentation FAQs - File an Issue + File an Issue Forums {{/if}}
@@ -19,4 +17,4 @@
  • Linux
  • - \ No newline at end of file +