Created
February 8, 2012 15:09
-
-
Save JNRowe/1770350 to your computer and use it in GitHub Desktop.
Bare hubugs template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/hubugs/templates/default/view/issue.txt w/hubugs/templates/default/view/issue.txt | |
index 6f37ce8..18a9d85 100644 | |
--- i/hubugs/templates/default/view/issue.txt | |
+++ w/hubugs/templates/default/view/issue.txt | |
@@ -1,35 +1,33 @@ | |
-{%- set heading_colour = "green" -%} | |
-{%- set user_colour = "yellow" -%} | |
-{%- block header -%} | |
-{{ " Id" | colourise(heading_colour) }}: {{ bug.number }} | |
-{{ " Title" | colourise(heading_colour) }}: {{ bug.title }} | |
-{{ " Labels" | colourise(heading_colour) }}: {{ bug.labels | join(", ") }} | |
-{{ " Created" | colourise(heading_colour) }}: {{ bug.created_at | relative_time }} by {{ bug.user | colourise(user_colour) }} | |
-{{ " Updated" | colourise(heading_colour) }}: {{ bug.updated_at | relative_time }} | |
-{{ " State" | colourise(heading_colour) }}: {{ bug.state }}{% if bug.closed_at %} {{ bug.closed_at | relative_time }}{% endif %} | |
-{{ " Comments" | colourise(heading_colour) }}: {{ bug.comments }} | |
-{{ " Votes" | colourise(heading_colour) }}: {{ bug.votes }} | |
-{{ "Pull request" | colourise(heading_colour) }}: {% if bug.pull_request_url %}{{ bug.pull_request_url }}{% else %}No{% endif %} | |
+{%- block header %} | |
+ Id: {{ bug.number }} | |
+ Title: {{ bug.title }} | |
+ Labels: {{ bug.labels }} | |
+ Created: {{ bug.created_at }} by {{ bug.user }} | |
+ Updated: {{ bug.updated_at }} | |
+ State: {{ bug.state }}{% if bug.closed_at %} {{ bug.closed_at }}{% endif %} | |
+ Comments: {{ bug.comments }} | |
+ Votes: {{ bug.votes }} | |
+Pull request: {% if bug.pull_request_url %}{{ bug.pull_request_url }}{% else %}No{% endif %} | |
{% endblock -%} | |
{%- block body %} | |
{%- if bug.body %} | |
-{{ bug.body | markdown | html2text }} | |
+{{ bug.body }} | |
{%- endif -%} | |
{% endblock %} | |
{% block patch %} | |
{%- if patch -%} | |
-{{ patch | highlight }} | |
+{{ patch }} | |
{%- endif -%} | |
{% endblock -%} | |
{%- block comments %} | |
{%- if full and bug.comments > 0 -%} | |
{% for comment in comments %} | |
-{{ " Comment" | colourise(heading_colour) }}: {{ loop.index }} | |
-{{ " Created" | colourise(heading_colour) }}: {{ comment.created_at | relative_time }} by {{ comment.user | colourise(user_colour) }} | |
-{{ " Updated" | colourise(heading_colour) }}: {{ comment.updated_at | relative_time }} | |
+ Comment: {{ loop.index }} | |
+ Created: {{ comment.created_at }} by {{ comment.user }} | |
+ Updated: {{ comment.updated_at }} | |
-{{ comment.body | markdown | html2text }} | |
+{{ comment.body }} | |
{%- endfor %} | |
{%- endif -%} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment