diff --git a/src/IDF/templates/idf/source/commit.html b/src/IDF/templates/idf/source/commit.html index 4c5814e..72dca0b 100644 --- a/src/IDF/templates/idf/source/commit.html +++ b/src/IDF/templates/idf/source/commit.html @@ -29,20 +29,20 @@ {foreach $changes.deletions as $filename} - + {/foreach} {foreach $changes.renames as $oldname => $newname} - + {/foreach} {foreach $changes.additions as $filename} - + {/foreach} {foreach $changes.patches as $filename} {assign $ndiff = count($diff.files[$filename]['chunks'])} - + {/foreach} {foreach $changes.properties as $filename => $properties} -
D{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
D{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
R{$oldname} -> {$newname}
R{$oldname} -> {$newname}
A{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
A{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
M{$filename}{if !empty($diff.files[$filename])} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}){/if}
M{$filename}{if !empty($diff.files[$filename])} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}){/if}
P{$filename} +
P{$filename} {foreach $properties as $key => $value} diff --git a/www/media/idf/css/style.css b/www/media/idf/css/style.css index ee95375..c346839 100644 --- a/www/media/idf/css/style.css +++ b/www/media/idf/css/style.css @@ -956,3 +956,41 @@ ol > li { .context > .expander div.input-with-delete.default { opacity: 0.5; } + +/** + * SCM action icons in the commit view + */ +span.scm-action { + display: inline-block; + line-height: 9px; + font-size: 9px; + text-align: center; + padding: 2px; + width: 9px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + color: white; + cursor: default; +} + +span.scm-action.added { + background-color: darkgreen; +} + +span.scm-action.deleted { + background-color: darkred; +} + +span.scm-action.patched { + background-color: orange; +} + +span.scm-action.renamed { + background-color: purple; +} + +span.scm-action.property-changed { + background-color: blue; +} +
{$key}