Skip to content

Commit

Permalink
FIX: CSS IDs Are Not Unique
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed Mar 18, 2023
1 parent 04cc635 commit f97bb45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/css/template-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ span.example-detail code, .example-steps code {
float: right;
}

#PasteDescTemplate {
.mr-10 {
margin-right: 10px;
}

Expand Down
4 changes: 2 additions & 2 deletions Template/task_comments/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<?php if (!empty($commentTemplate['topic'])): ?>
<span class="template-topic" title="<?= ($commentTemplate['topic']) ?>"><?= ($commentTemplate['topic']) ?></span>
<?php endif ?>
<a id="ViewDescTemplate" href="<?= $this->url->href('CommentTemplateController', 'viewTemplate', array('project_id' => $project['id'], 'id' => $commentTemplate['id'], 'plugin' => 'TemplateManager'), false, '', false) ?>" class="icon-btn js-modal-medium" title="<?=t('View Template') ?>">
<a href="<?= $this->url->href('CommentTemplateController', 'viewTemplate', array('project_id' => $project['id'], 'id' => $commentTemplate['id'], 'plugin' => 'TemplateManager'), false, '', false) ?>" class="icon-btn js-modal-medium" title="<?=t('View Template') ?>">
<svg width="21px" height="21px" class="comment-templates-icon" fill="currentColor" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<g stroke-width="0"/>
<g stroke-linecap="round" stroke-linejoin="round"/>
Expand All @@ -78,7 +78,7 @@
</g>
</svg>
</a>
<a id="PasteDescTemplate" href="#" class="icon-btn js-template-comment" data-template-target="textarea[name=comment]" data-template="<?= htmlspecialchars($commentTemplate['description']) ?>" title="<?= t('Paste to Text Editor') ?>">
<a href="#" class="mr-10 icon-btn js-template-comment" data-template-target="textarea[name=comment]" data-template="<?= htmlspecialchars($commentTemplate['description']) ?>" title="<?= t('Paste to Text Editor') ?>">
<svg fill="currentColor" class="text-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21px" height="21px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<g stroke-width="0"/>
<g stroke-linecap="round" stroke-linejoin="round"/>
Expand Down

0 comments on commit f97bb45

Please sign in to comment.