Fixed html escaping of richtext elements. Move to one column layout. two column was not practical.
This commit is contained in:
parent
153d325e84
commit
f89f6fc47d
2 changed files with 14 additions and 6 deletions
|
@ -1,10 +1,14 @@
|
|||
<hr>
|
||||
<div class="horizontal two-columns">
|
||||
<div>
|
||||
<% for row in @organizationData: %>
|
||||
<% if @organization[row.name]: %>
|
||||
<div class="column">
|
||||
<h3><%- @T( row.display ) %></h3>
|
||||
<div><%- @L( @P( @organization[row.name] ) ) %></div>
|
||||
<% if row.tag is 'richtext': %>
|
||||
<div><%- @organization[row.name] %></div>
|
||||
<% else: %>
|
||||
<div><%- @L( @P( @organization[row.name] ) ) %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -2,18 +2,22 @@
|
|||
<div class="user-organization"><a href="<%- @user.organization.uiUrl() %>"><%= @user.organization.displayName() %></a></div>
|
||||
<% end %>
|
||||
<hr>
|
||||
<div class="horizontal two-columns">
|
||||
<div>
|
||||
<% for row in @userData: %>
|
||||
<% if @user[row.name]: %>
|
||||
<div class="column">
|
||||
<h3><%- @T( row.display ) %></h3>
|
||||
<div><%- @L( @P( @user[row.name] ) ) %></div>
|
||||
<% if row.tag is 'richtext': %>
|
||||
<div><%- @user[row.name] %></div>
|
||||
<% else: %>
|
||||
<div><%- @L( @P( @user[row.name] ) ) %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if !_.isEmpty(@user['accounts']): %>
|
||||
<div class="customer-info">
|
||||
<strong><%- @T( 'Linked Accounts' ) %></strong><br/>
|
||||
<h3><%- @T( 'Linked Accounts' ) %></h3>
|
||||
<% for account of @user['accounts']: %>
|
||||
<a href="<%= @user['accounts'][account]['link'] %>" target="_blank"><%= account %></a>
|
||||
<% end %>
|
||||
|
@ -22,7 +26,7 @@
|
|||
<% if !_.isEmpty( @user['links'] ): %>
|
||||
<% for link in @user['links']: %>
|
||||
<div class="customer-info">
|
||||
<strong><%- @T( link['title'] ) %></strong><br/>
|
||||
<h3><%- @T( link['title'] ) %></h3>
|
||||
<% for item in link['items']: %>
|
||||
<% if item['url']: %>
|
||||
<a href="<%= item['url'] %>" title="<%- @Ti( item['title'] ) %>" style="<%= item['style'] %>" data-type="<%= item['data'] %>" class="<%= item['class'] %>" <% if link.new_window: %>target="_blank"<% end %>>
|
||||
|
|
Loading…
Reference in a new issue