Commits

Lukasz Balcerzak  committed e951150

Added git to supported vcs backends by default (still only browsing works)

  • Participants
  • Parent commits 317a2e6

Comments (0)

Files changed (5)

 .pydevproject
 
 example_project/media
+example_project/projects
 example_project/conf/*settings*.py
 example_project/celerybeat-schedule
 projector/plugins

File projector/settings.py

 )
 
 ENABLED_VCS_BACKENDS = getattr(settings,
-    'PROJECTOR_ENABLED_VCS_BACKENDS', ['hg'])
+    'PROJECTOR_ENABLED_VCS_BACKENDS', ['hg', 'git'])
 
 FROM_EMAIL_ADDRESS = settings.DEFAULT_FROM_EMAIL
 

File projector/templates/projector/project/repository/annotate_changeset_cell.html

 {% load i18n projector_tags %}{% spaceless %}
 <a href="{% url projector_project_sources_browse project.author.username project.slug line_changeset.raw_id root.path %}"
    title="{% trans "Show changeset" %} {{ line_changeset.raw_id }} {% trans "by" %} {{ line_changeset.author|hide_email }}"
-   class="show-tipsy">{{ line_changeset.revision }}:{{ line_changeset.raw_id }}</a>
+   class="show-tipsy">{{ line_changeset }}</a>
 {% endspaceless %}

File projector/templates/projector/project/repository/browse.html

                     <th>{% trans "Revision" %}</th>
                     <td><a class="show-tipsy"
                            href="{% url projector_project_sources_browse project.author.username project.slug root.changeset.id '' %}"
-                           title="{% trans "Show changeset" %}">{{ root.changeset.revision }}:{{ root.changeset.raw_id }}</a></td>
+                           title="{% trans "Show changeset" %}">{{ root.changeset }}</a></td>
                 </tr>
                 {% if root.is_file %}
                 <tr>
             <li>
                 <a href="{% url projector_project_sources_browse project.author.username project.slug changeset.id root.path %}"
                    class="show-tipsy"
-                   title="{% trans "Show at revision" %}">{{ changeset.revision }}:{{ changeset.raw_id }}</a>
+                   title="{% trans "Show at revision" %}">{{ changeset }}</a>
             {% if root.changeset.id != changeset.id %}
             (<a href="{% url projector_project_sources_diff project.author.username project.slug changeset.id root.changeset.id root.path %}"
                class="show-tipsy"

File projector/templates/projector/project/repository/changeset_list.html

             <tr class="{% cycle "odd" "even" %} hoverable">
                 <td><a href="{% url projector_project_sources_browse project.author.username project.slug changeset.id '' %}"
                        class="browser-changeset block-link show-tipsy-right"
-                       title="{% trans "Browse revision's content" %}">{{ changeset.revision }}:{{ changeset.raw_id }}</a>
+                       title="{% trans "Browse revision's content" %}">{{ changeset }}</a>
                 </td>
                 <td>
                     <ul class="changeset-changes centered">