Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
38f769f2
Commit
38f769f2
authored
Apr 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicer display of git information
parent
0a2e41e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
weblate/html/git-commit-info.html
weblate/html/git-commit-info.html
+3
-4
weblate/html/js/git-status.html
weblate/html/js/git-status.html
+0
-3
weblate/html/subproject_info.html
weblate/html/subproject_info.html
+1
-4
weblate/media/style.css
weblate/media/style.css
+6
-0
No files found.
weblate/html/git-commit-info.html
View file @
38f769f2
{% load i18n %}
{% load translations %}
<span
class=
"git-details"
>
{% load i18n %}{% load translations %}
<span
class=
"git-commit ui-corner-all"
>
{{ commit.hexsha|slice:":8" }}
<span
class=
"git-details"
>
{% blocktrans with commit.hexsha as hash %}Commit {{ hash }}{% endblocktrans %}
<br
/>
{% blocktrans with commit.author.name as author and commit.authored_date|gitdate as date %}Authored by {{ author }} on {{ date }}{% endblocktrans %}
</span>
</span>
</span>
weblate/html/js/git-status.html
View file @
38f769f2
...
...
@@ -36,10 +36,7 @@
{% with object.get_last_remote_commit as commit %}
<p>
{% trans "Last remote commit:" %}
<span
class=
"git-commit"
>
{{ commit.hexsha|slice:":7" }}
{% include "git-commit-info.html" %}
</span>
</p>
{% endwith %}
{% endif %}
...
...
weblate/html/subproject_info.html
View file @
38f769f2
...
...
@@ -4,17 +4,14 @@
{% include "project_info.html" %}
{% endwith %}
<p>
{% trans "Git repository:" %}
<code>
{% if object.is_repo_link %}{{ object.linked_subproject.repo }}{% else %}{{ object.repo }}{% endif %}
</code>
(
<code
class=
"git-repo ui-corner-all"
>
{% if object.is_repo_link %}{{ object.linked_subproject.repo }}{% else %}{{ object.repo }}{% endif %}
</code>
(
{% if object.is_repo_link %}
{% blocktrans with object.linked_subproject.branch as branch %}{{ branch }} branch{% endblocktrans %}
{% else %}
{% blocktrans with object.branch as branch %}{{ branch }} branch{% endblocktrans %}
@
{% with object.get_last_remote_commit as commit %}
<span
class=
"git-commit"
>
{{ commit.hexsha|slice:":7" }}
{% include "git-commit-info.html" %}
</span>
{% endwith %}
)
{% endif %}
...
...
weblate/media/style.css
View file @
38f769f2
...
...
@@ -272,3 +272,9 @@ img.engage-icon {
padding
:
5px
;
border
:
1px
solid
gray
;
}
.git-commit
,
.git-repo
{
font-family
:
monospace
;
border
:
1px
solid
gray
;
background-color
:
#eee
;
padding
:
0.2em
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment