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
baa6cf03
Commit
baa6cf03
authored
Feb 27, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rendering
parent
627b5534
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
html/project.html
html/project.html
+1
-1
html/subproject.html
html/subproject.html
+1
-1
html/translation.html
html/translation.html
+1
-1
trans/views.py
trans/views.py
+3
-3
No files found.
html/project.html
View file @
baa6cf03
{% load i18n %}
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% block content %}
<h2>
Subprojects
</h2>
<h2>
Subprojects
</h2>
...
...
html/subproject.html
View file @
baa6cf03
{% load i18n %}
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% block content %}
<h2>
Translations
</h2>
<h2>
Translations
</h2>
...
...
html/translation.html
View file @
baa6cf03
{% load i18n %}
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% block content %}
...
...
trans/views.py
View file @
baa6cf03
...
@@ -6,7 +6,7 @@ from trans.models import Project, SubProject, Translation, Unit
...
@@ -6,7 +6,7 @@ from trans.models import Project, SubProject, Translation, Unit
def
show_project
(
request
,
project
):
def
show_project
(
request
,
project
):
obj
=
get_object_or_404
(
Project
,
slug
=
project
)
obj
=
get_object_or_404
(
Project
,
slug
=
project
)
return
render_to_response
(
'project.html'
,
RequestContext
({
return
render_to_response
(
'project.html'
,
RequestContext
(
request
,
{
'object'
:
obj
,
'object'
:
obj
,
'title'
:
'%s @ Weblate'
%
obj
.
name
,
'title'
:
'%s @ Weblate'
%
obj
.
name
,
}))
}))
...
@@ -14,7 +14,7 @@ def show_project(request, project):
...
@@ -14,7 +14,7 @@ def show_project(request, project):
def
show_subproject
(
request
,
project
,
subproject
):
def
show_subproject
(
request
,
project
,
subproject
):
obj
=
get_object_or_404
(
SubProject
,
slug
=
subproject
,
project__slug
=
project
)
obj
=
get_object_or_404
(
SubProject
,
slug
=
subproject
,
project__slug
=
project
)
return
render_to_response
(
'subproject.html'
,
RequestContext
({
return
render_to_response
(
'subproject.html'
,
RequestContext
(
request
,
{
'object'
:
obj
,
'object'
:
obj
,
'title'
:
'%s/%s @ Weblate'
%
(
obj
.
name
,
obj
.
project
.
name
),
'title'
:
'%s/%s @ Weblate'
%
(
obj
.
name
,
obj
.
project
.
name
),
}))
}))
...
@@ -22,7 +22,7 @@ def show_subproject(request, project, subproject):
...
@@ -22,7 +22,7 @@ def show_subproject(request, project, subproject):
def
show_translation
(
request
,
project
,
subproject
,
lang
):
def
show_translation
(
request
,
project
,
subproject
,
lang
):
obj
=
get_object_or_404
(
Language
,
language__code
=
lang
,
subproject__slug
=
subproject
,
subproject__project__slug
=
project
)
obj
=
get_object_or_404
(
Language
,
language__code
=
lang
,
subproject__slug
=
subproject
,
subproject__project__slug
=
project
)
return
render_to_response
(
'translation.html'
,
RequestContext
({
return
render_to_response
(
'translation.html'
,
RequestContext
(
request
,
{
'object'
:
obj
,
'object'
:
obj
,
'title'
:
'%s %s/%s @ Weblate'
%
(
obj
.
language
.
name
,
obj
.
subproject
.
name
,
obj
.
subproject
.
project
.
name
),
'title'
:
'%s %s/%s @ Weblate'
%
(
obj
.
language
.
name
,
obj
.
subproject
.
name
,
obj
.
subproject
.
project
.
name
),
}))
}))
...
...
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