Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into readme-box
Browse files Browse the repository at this point in the history
Conflicts:
	web/js/main.js
  • Loading branch information
mprochowski committed Jun 13, 2012
2 parents c6de3bb + d77f05d commit 0b8ec9b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion views/blame.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/commit.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/commits.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/error.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/file.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/navigation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="{{ baseurl }}">Gitlist</a>
<a class="brand" href="{{ baseurl }}">GitList</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li><a href="https://github.com/klaussilveira/gitlist/">About</a></li>
Expand Down
2 changes: 1 addition & 1 deletion views/rss.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<rss version="2.0">
<channel>
<title>Latest commits in {{ repo }}:{{ branch }}</title>
<description>RSS provided by Gitlist</description>
<description>RSS provided by GitList</description>
<link>{{ baseurl }}/</link>

{% for commit in commits %}
Expand Down
2 changes: 1 addition & 1 deletion views/stats.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
2 changes: 1 addition & 1 deletion views/tree.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'layout.twig' %}
{% block title %}Gitlist{% endblock %}
{% block title %}GitList{% endblock %}

{% block body %}
{% include 'navigation.twig' %}
Expand Down
21 changes: 11 additions & 10 deletions web/js/main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
$(function () {
$('.dropdown-toggle').dropdown();
var mode = $('#sourcecode').attr('language');

CodeMirror.fromTextArea(document.getElementById("sourcecode"), {
lineNumbers: true,
matchBrackets: true,
lineWrapping: true,
readOnly: true,
mode: mode
});
});
if ($('#sourcecode').length) {
var mode = $('#sourcecode').attr('language');
CodeMirror.fromTextArea(document.getElementById("sourcecode"), {
lineNumbers: true,
matchBrackets: true,
lineWrapping: true,
readOnly: true,
mode: mode
});
};

if ($('#readme-content').length) {
if ($('#readme-content').length) {
var converter = new Showdown.converter();
$('#readme-content').html(converter.makeHtml($('#readme-content').text()));
}
Expand Down

0 comments on commit 0b8ec9b

Please sign in to comment.