Skip to content

Commit

Permalink
Merge pull request #3 from polarityio/task/update-span
Browse files Browse the repository at this point in the history
Task/update span
  • Loading branch information
penwoodjon authored Oct 28, 2020
2 parents d9bfd9e + afd7661 commit c194ba8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "./integration.js",
"name": "LDAP",
"description": "Polarity LDAP Integration",
"version": "3.4.3-beta",
"version": "3.4.4-beta",
"license": "MIT",
"author": "Polarity",
"private": true,
Expand Down
34 changes: 17 additions & 17 deletions templates/ldap-summary.hbs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{{#each summaryAttributes as |attribute|}}
<span class="integration-summary-tag integration-background-color integration-border-color">
<span class="acronym integration-text-bold-color">{{block.acronym}}</span>
<span class="integration-text-color">
{{humanize (dasherize attribute.display)}}:
{{#if (eq attribute.type 'date')}}
{{moment-format attribute.value 'L LTS' timeZone=timezone}}
{{else if (eq attribute.type 'array')}}
{{#each attribute.value as | value |}}
<span class="array-item">{{value}}</span>
{{/each}}
{{else}}
{{attribute.value}}
{{/if}}
</span>
</span>
{{/each}}
{{#each summaryAttributes as |attribute|}}
<span {{on "click" (optional this.scrollToIntegration)}} class="integration-summary-tag integration-background-color integration-border-color">
<span class="acronym integration-text-bold-color">{{block.acronym}}</span>
<span class="integration-text-color">
{{humanize (dasherize attribute.display)}}:
{{#if (eq attribute.type 'date')}}
{{moment-format attribute.value 'L LTS' timeZone=timezone}}
{{else if (eq attribute.type 'array')}}
{{#each attribute.value as | value |}}
<span class="array-item">{{value}}</span>
{{/each}}
{{else}}
{{attribute.value}}
{{/if}}
</span>
</span>
{{/each}}

0 comments on commit c194ba8

Please sign in to comment.