From eb29c50379190e25fcb14bf3a88a2ba06b0d469c Mon Sep 17 00:00:00 2001
From: Luka Murn
- <% if repository_cell.value_type == 'RepositoryAssetValue' %>
- <%= render partial: "shared/asset_link", locals: { asset: repository_cell.value.asset, display_image_tag: false }, formats: :html %>
- <% else %>
<%= t "repository_row.modal_info.custom_field", cf: repository_cell.repository_column.name %>
- <%= custom_auto_link(repository_cell.value.formatted, simple_format: false, team: current_team) %>
+ <% if repository_cell.value_type == 'RepositoryAssetValue' %>
+ <%= render partial: "shared/asset_link", locals: { asset: repository_cell.value.asset, display_image_tag: false }, formats: :html %>
+ <% else %>
+ <%= custom_auto_link(repository_cell.value.formatted, simple_format: false, team: current_team) %>
+ <% end %>
- <% end %>
<% end %>
<%= truncate(asset.file_file_name, - length: Constants::FILENAME_TRUNCATION_LENGTH) %>
+ <%= truncate(asset.file_file_name, + length: Constants::FILENAME_TRUNCATION_LENGTH) %> <% end %> <% else %> @@ -19,8 +19,17 @@ <% if asset.is_image? && display_image_tag %> <%= image_tag asset.url(:medium) %> <% end %> -<%= truncate(asset.file_file_name, - length: Constants::FILENAME_TRUNCATION_LENGTH) %>
+ <% if display_image_tag %> ++ <%= truncate(asset.file_file_name, + length: Constants::FILENAME_TRUNCATION_LENGTH) %> +
+ <% else %> + + <%= truncate(asset.file_file_name, + length: Constants::FILENAME_TRUNCATION_LENGTH) %> + + <% end %> <% end %> <% end %> <% else %>