summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Leray <alexandre@alexandreleray.com>2010-11-04 16:13:45 (GMT)
committer Alexandre Leray <alexandre@alexandreleray.com>2010-11-04 16:13:45 (GMT)
commit4723ae60ebece1a8b5d1ee4cca82c9c9255069a4 (patch)
tree54db8adc646634904aec5aac018c6f02de4733d8
parent485346351bee62c65cd1e5f3c50799ebaba5f0df (diff)
put unicode characters to symbolize actions
-rwxr-xr-xbrainch/models/actions.py8
-rwxr-xr-xbrainch/templates/brainch/diff.html4
-rwxr-xr-xbrainch/templates/brainch/edit.html4
-rw-r--r--brainch/templates/brainch/history.html2
-rw-r--r--brainch/templates/brainch/inc/clone_list.html2
-rw-r--r--brainch/templates/brainch/pull-request.html4
-rwxr-xr-xbrainch/templates/brainch/view.html12
7 files changed, 18 insertions, 18 deletions
diff --git a/brainch/models/actions.py b/brainch/models/actions.py
index 41633bc..5fad27f 100755
--- a/brainch/models/actions.py
+++ b/brainch/models/actions.py
@@ -58,15 +58,15 @@ class UserAction(models.Model):
message = u"<a href=\"%s\">%s</a> " \
% (profile.get_absolute_url(), self.who.username)
if self.get_what_display() == "CREATED":
- message += "<span class=\"created\">created</span> "
+ message += "<span class=\"created\">&#9055;created</span> "
message += "\"%s\"" \
% data.get("repo_name", "???")
elif self.get_what_display() == "EDITED":
- message += "<span class=\"edited\">&#2710; edited</span> "
+ message += "<span class=\"edited\">&#8605; edited</span> "
message += "\"%s\"" \
% data.get("repo_name", "???")
elif self.get_what_display() == "CLONED":
- message += "<span class=\"cloned\">&#9903; cloned</span> "
+ message += "<span class=\"cloned\">&#8887; cloned</span> "
message += "\"%s\"" \
% data.get("repo_name", "???")
message += "from %s" \
@@ -78,7 +78,7 @@ class UserAction(models.Model):
message += "\"%s\"" \
% data.get("repo_name", "???")
elif self.get_what_display() == "INVITED":
- message += "<span class=\"invited\">invited</span> "
+ message += "<span class=\"invited\">&#9993; invited</span> "
message += "%s " \
% data.get("repo_mates", "???")
message += "to synchronize his/her version of \"%s\"" \
diff --git a/brainch/templates/brainch/diff.html b/brainch/templates/brainch/diff.html
index fda30bc..64a1dfe 100755
--- a/brainch/templates/brainch/diff.html
+++ b/brainch/templates/brainch/diff.html
@@ -10,8 +10,8 @@
{% block sidebar %}
<ul class="tools">
- <li><a href="{% url brainch-view repo.user repo.slug %}">Read latest version</a></li>
- <li><a href="{% url brainch-history repo.user repo.slug %}">History of the text</a></li>
+ <li><a href="{% url brainch-view repo.user repo.slug %}">&#8620; Read latest version</a></li>
+ <li><a href="{% url brainch-history repo.user repo.slug %}">&#8619; History of the text</a></li>
</ul>
{% endblock sidebar %}
diff --git a/brainch/templates/brainch/edit.html b/brainch/templates/brainch/edit.html
index 1ffa03f..74d01a5 100755
--- a/brainch/templates/brainch/edit.html
+++ b/brainch/templates/brainch/edit.html
@@ -20,8 +20,8 @@
{% block sidebar %}
<ul class="tools">
- <li><a href='{% url brainch-view user.username repo.slug %}'>Read latest version</a></li>
- <li><a href='{% url brainch-history user.username repo.slug %}'>History of the text</a></li>
+ <li><a href='{% url brainch-view user.username repo.slug %}'>&#8620; Read latest version</a></li>
+ <li><a href='{% url brainch-history user.username repo.slug %}'>&#8619; History of the text</a></li>
</ul>
{% endblock sidebar %}
diff --git a/brainch/templates/brainch/history.html b/brainch/templates/brainch/history.html
index 7b99c33..7bf5c83 100644
--- a/brainch/templates/brainch/history.html
+++ b/brainch/templates/brainch/history.html
@@ -10,7 +10,7 @@
{% block sidebar %}
<ul class="tools">
- <li><a href='{% url brainch-view repo.user repo.slug %}'>Read latest version</a></li>
+ <li><a href='{% url brainch-view repo.user repo.slug %}'>&#8620; Read latest version</a></li>
</ul>
{% clone_list repo %}
{% endblock sidebar %}
diff --git a/brainch/templates/brainch/inc/clone_list.html b/brainch/templates/brainch/inc/clone_list.html
index 601e926..d62b1e4 100644
--- a/brainch/templates/brainch/inc/clone_list.html
+++ b/brainch/templates/brainch/inc/clone_list.html
@@ -3,7 +3,7 @@
<ul class='other-copies'>
{% for clone in clone_list %}
<li>
- {% ifequal clone origin.origin %}*{% endifequal %}
+ {% ifequal clone origin.origin %}&#8886;{% endifequal %}
{% with clone.user as user %}
<a href="/{{ user }}">{{ user }}</a>'s
{% endwith %}
diff --git a/brainch/templates/brainch/pull-request.html b/brainch/templates/brainch/pull-request.html
index ec7642e..007240b 100644
--- a/brainch/templates/brainch/pull-request.html
+++ b/brainch/templates/brainch/pull-request.html
@@ -5,8 +5,8 @@
{% block sidebar %}
<ul class="tools">
- <li><a href='{% url brainch-view repo.user repo.name %}'>Read latest version</a></li>
- <li><a href='{% url brainch-history repo.user repo.name %}'>History of the text</a></li>
+ <li><a href='{% url brainch-view repo.user repo.name %}'>&#8620; Read latest version</a></li>
+ <li><a href='{% url brainch-history repo.user repo.name %}'>&#8619; History of the text</a></li>
</ul>
{% endblock sidebar %}
diff --git a/brainch/templates/brainch/view.html b/brainch/templates/brainch/view.html
index 8e30886..f653b50 100755
--- a/brainch/templates/brainch/view.html
+++ b/brainch/templates/brainch/view.html
@@ -7,20 +7,20 @@
{% block sidebar %}
<ul class="tools">
{% ifnotequal revision "HEAD" %}
- <li><a href="{% url brainch-view repo.user repo.slug %}">Read latest version</a></li>
+ <li><a href="{% url brainch-view repo.user repo.slug %}">&#8620; Read latest version</a></li>
{% endifnotequal %}
- <li><a href="{% url brainch-history repo.user repo.slug %}">History of the text</a></li>
+ <li><a href="{% url brainch-history repo.user repo.slug %}">&#8619; History of the text</a></li>
{% if user.is_authenticated %}
{% ifequal repo.user user %}
- <li><a href="{% url brainch-edit repo.user repo.slug %}">Edit the text</a></li>
- <li><a href="{% url brainch-pull-request repo.user repo.slug %}">Propose your changes</a></li>
+ <li><a href="{% url brainch-edit repo.user repo.slug %}">&#8605; Edit the text</a></li>
+ <li><a href="{% url brainch-pull-request repo.user repo.slug %}">&#9993; Propose your changes</a></li>
{% else %}
{% if clone %}
- <li><a href="{% url brainch-pull repo.user repo.slug %}">Synchronize your text</a></li>
+ <li><a href="{% url brainch-pull repo.user repo.slug %}">&#8633; Synchronize your text</a></li>
{% else %}
- <li><a href="{% url brainch-clone repo.user repo.slug %}">Clone this text</a></li>
+ <li><a href="{% url brainch-clone repo.user repo.slug %}">&#8887; Clone this text</a></li>
{% endif %}
{% endifequal %}
{% endif %}