Skip to content

Commit

Permalink
Simplifying our wording a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Jul 31, 2023
1 parent 9d78ebd commit c04f689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/app/templates/jobs/job/variables.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
<code>
<EditableVariableLink @path="nomad/jobs" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} />
</code>
to grant all your jobs access</li>
for access in all tasks in all jobs</li>
<li data-test-variables-intro-job>
Use
<code>
<EditableVariableLink @path="nomad/jobs/{{this.model.job.name}}" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} />
</code>
to grant this job access
for access from all tasks in this job
</li>
<li data-test-variables-intro-groups>
Use
{{#if (gt this.firstFewTaskGroupNames.length 1)}}
{{#each this.firstFewTaskGroupNames as |name|}}
<code><EditableVariableLink @path="nomad/jobs/{{this.model.job.name}}/{{name}}" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} /></code>,
{{/each}}
etc. to grant a specific task group access
etc. for access from all tasks in a specific task group
{{else}}
<code>
<EditableVariableLink @path="nomad/jobs/{{this.model.job.name}}/{{object-at 0 this.firstFewTaskGroupNames}}" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} />
</code>
to grant your task group access
for access from all tasks in a specific task group
{{/if}}
</li>
<li data-test-variables-intro-tasks>
Expand All @@ -46,11 +46,11 @@
{{#each this.firstFewTaskNames as |name|}}
<code><EditableVariableLink @path="nomad/jobs/{{this.model.job.name}}/{{name}}" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} /></code>,
{{/each}}
etc. to grant a specific task access
etc. for access from a specific task
{{else}}
<code>
<EditableVariableLink @path="nomad/jobs/{{this.model.job.name}}/{{object-at 0 this.firstFewTaskNames}}" @existingPaths={{this.jobRelevantVariables.files}} @namespace={{this.model.job.namespace.name}} />
</code> to grant your task access
</code> for access from a specific task
{{/if}}
</li>
</ul>
Expand Down

0 comments on commit c04f689

Please sign in to comment.