Skip to content

Instantly share code, notes, and snippets.

@Freso Freso/gist:4427854
Last active Dec 10, 2015

Embed
What would you like to do?
<td>
[%- IF medium_edit.title && medium_edit.old == 'new' -%]
[%- l('Disc <span class="new">{new}</span>: {title} (new disc)',
new => medium_edit.new, title => medium_edit.title) -%]
[%- ELSIF medium_edit.title -%]
[%- l('Disc <span class="new">{new}</span>: {title} (moved from position <span class="old">{old}</span>)',
new => medium_edit.new, title => medium_edit.title, , old => medium_edit.old) -%]
[%- ELSIF medium_edit.old == 'new' -%]
[%- l('Disc <span class="new">{new}</span> (new disc)',
new => medium_edit.new) -%]
[%- ELSE -%]
[%- l('Disc <span class="new">{new}</span> (moved from position <span class="old">{old}</span>)',
new => medium_edit.new, old => medium_edit.old) -%]
[%- END -%]
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.