-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Refactor
pat-relateditems
so all logic goes outside the templa…
…te. refs gh-1306
- Loading branch information
Showing
10 changed files
with
229 additions
and
107 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
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,15 +1,7 @@ | ||
<li class="pat-relateditems-recentlyused dropdown-item"> | ||
<a class="pat-relateditems-recentlyused-select" data-uid="<%- UID %>"> | ||
<span | ||
class="pat-relateditems-recentlyused-title <%- portal_type ? 'contenttype-' + portal_type.toLowerCase() : '' %> <%- review_state ? 'state-' + review_state : '' %>" | ||
title="<%- portal_type %>"> | ||
<%- Title %> | ||
</span> | ||
<span class="<%- itemclass %>" title="<%- portal_type %>"><%- Title %></span> | ||
<span class="pat-relateditems-recentlyused-path"><%- path %></span> | ||
<% if (getURL && (getIcon || portal_type === "Image")) { %> | ||
<span class="pat-relateditems-recentlyused-image"> | ||
<img src="<%- getURL %>/@@images/image/tile" /> | ||
</span> | ||
<% } %> | ||
<span class="pat-relateditems-recentlyused-image"><%= imgsrc %></span> | ||
</a> | ||
</li> |
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,41 +1,18 @@ | ||
<div class="pat-relateditems-result <%- oneLevelUp ? 'one-level-up' : '' %>"> | ||
<div class="<%- div_class %>"> | ||
<div class="pat-relateditems-result-browse-wrapper"> | ||
<% if (!oneLevelUp) { %> | ||
<a | ||
class="pat-relateditems-result-select<%- selectable ? ' selectable' : '' %><%- oneLevelUp ? ' one-level-up' : '' %>" | ||
data-path="<%- path %>"> | ||
<% } %> | ||
<%= not_one_level_up_open_a %> | ||
|
||
<div class="pat-relateditems-result-info"> | ||
<span | ||
class="pat-relateditems-result-title <%- portal_type ? 'contenttype-' + portal_type.toLowerCase() : '' %> <%- review_state ? 'state-' + review_state : '' %>" | ||
class="<%- span_title_class %>" | ||
title="<%- portal_type %>"> | ||
<%- Title %> | ||
</span> | ||
<span class="pat-relateditems-result-path"><%- oneLevelUp ? currentPath : path %></span> | ||
<span class="pat-relateditems-result-path"><%- result_path %></span> | ||
</div> | ||
<% if (is_folderish) { %> | ||
<a | ||
class="pat-relateditems-result-browse" | ||
data-path="<%- path %>" | ||
title="<%- oneLevelUp ? one_level_up : open_folder %>"> | ||
<%= oneLevelUp ? iconLevelUp : iconLevelDown %> | ||
</a> | ||
<% } %> | ||
<% if (!oneLevelUp) { %> | ||
</a> | ||
<% } %> | ||
<%= browse_folder_a %> | ||
<%= not_one_level_up_close_a %> | ||
|
||
</div> | ||
<% if (getURL && (getIcon || portal_type === "Image")) { %> | ||
<% if (!oneLevelUp) { %> | ||
<a | ||
class="pat-relateditems-result-select<%- selectable ? ' selectable' : '' %><%- oneLevelUp ? ' one-level-up' : '' %>" | ||
data-path="<%- path %>"> | ||
<% } %> | ||
<div class="pat-relateditems-result-image"> | ||
<img src="<%- getURL %>/@@images/image/thumb" /> | ||
</div> | ||
<% if (!oneLevelUp) { %> | ||
</a> | ||
<% } %> | ||
<% } %> | ||
<%= append_if_image %> | ||
</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
Oops, something went wrong.