Switch from latin1 chars to the HTML escape char equivalents.
Dan Brook [Fri, 20 Nov 2009 23:51:14 +0000 (23:51 +0000)]
lib/Gitalist/Controller/Root.pm
root/_log_pager.tt2
root/_shortlog.tt2
root/nav/actions.tt2

index 8d36844..d6e6092 100644 (file)
@@ -576,7 +576,7 @@ sub auto : Private {
     short_cmt => sub {
       my $cmt = shift;
       my($line) = split /\n/, $cmt;
-      $line =~ s/^(.{70,80}\b).*/$1 …/;
+      $line =~ s/^(.{70,80}\b).*/$1 \x{2026}/;
       return $line;
     },
     abridged_description => sub {
index 7243c9a..8d1401c 100644 (file)
@@ -1,9 +1,9 @@
 <div class='pager'>
- <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> §
+ <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> &sect;
  [% IF log_lines.first.sha1 != commit.sha1 %]
- <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>« prev</a>
+ <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>&laquo; prev</a>
  [% END %]
  [% IF log_lines.size == 50 %]
- <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next »</a>
+ <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next &raquo;</a>
  [% END %]
 </div>
index 19caaf1..fc39b11 100644 (file)
@@ -26,7 +26,7 @@
    <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
    <td class='author'>[% line.author.name | html %]</td>
    <td>
-     [% short_cmt(line.comment) | html %]
+     [% short_cmt(line.comment) | html_entity %]
      [% INCLUDE '_refs.tt2' object = line %]
    </td>
    <td class='action-list'>
index 0fe60b2..700a5a8 100644 (file)
@@ -1,17 +1,17 @@
 <div class='actions'>
-    <a href="[% c.uri_for('summary') %]">summary</a> •
-    <a href="[% c.uri_for('shortlog', {h=object.sha1}) %]">shortlog</a> •
-    <a href="[% c.uri_for('log', {h=object.sha1}) %]">log</a> •
-    <a href="[% c.uri_for('commit', {h=object.sha1}) %]">commit</a> •
+    <a href="[% c.uri_for('summary') %]">summary</a> &bull;
+    <a href="[% c.uri_for('shortlog', {h=object.sha1}) %]">shortlog</a> &bull;
+    <a href="[% c.uri_for('log', {h=object.sha1}) %]">log</a> &bull;
+    <a href="[% c.uri_for('commit', {h=object.sha1}) %]">commit</a> &bull;
     <a href="[% c.uri_for('commitdiff', {h=object.sha1}) %]">commitdiff</a>
-    [% IF object.type == 'commit' %] •
+    [% IF object.type == 'commit' %] &bull;
     <a href="[% c.uri_for('tree', {h=object.tree_sha1, hb=object.sha1}) %]">tree</a>
     [% END %]
     [% IF filename %]
     §
-    <a href="[% c.uri_for('blob', {h=object.sha1,f=filename}) %]">blob</a> •
-    <a href="[% c.uri_for('blame', {h=object.sha1,f=filename}) %]">blame</a> •
-    <a href="[% c.uri_for('shortlog', {h=object.sha1,f=filename}) %]">history</a> •
+    <a href="[% c.uri_for('blob', {h=object.sha1,f=filename}) %]">blob</a> &bull;
+    <a href="[% c.uri_for('blame', {h=object.sha1,f=filename}) %]">blame</a> &bull;
+    <a href="[% c.uri_for('shortlog', {h=object.sha1,f=filename}) %]">history</a> &bull;
     <a href="[% c.uri_for(action, {f=filename}) %]">HEAD</a>
     [% END %]
     <div class='chroma-hash'>[% INCLUDE '_chroma_hash.tt2' sha1 = object.sha1 %]</div>