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
6c9f9701
Commit
6c9f9701
authored
Nov 02, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some docs
parent
7c7cf538
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
weblate/__init__.py
weblate/__init__.py
+4
-0
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+9
-0
No files found.
weblate/__init__.py
View file @
6c9f9701
...
...
@@ -58,11 +58,15 @@ def get_doc_url(page, anchor = ''):
'''
Return URL to documentation.
'''
# Should we use tagged release or latest version
if
RUNNING_GIT
and
not
GIT_RELEASE
:
version
=
'latest'
else
:
version
=
'weblate-%s'
%
VERSION
# Generate URL
url
=
'http://weblate.readthedocs.org/en/%s/%s.html'
%
(
version
,
page
)
# Optionally append anchor
if
anchor
!=
''
:
url
+=
'#%s'
%
anchor
return
url
weblate/trans/admin_views.py
View file @
6c9f9701
...
...
@@ -29,14 +29,22 @@ import os
@
staff_member_required
def
report
(
request
):
'''
Provides report about git status of all repos.
'''
return
render_to_response
(
"admin/report.html"
,
RequestContext
(
request
,
{
'subprojects'
:
SubProject
.
objects
.
all
()
}))
@
staff_member_required
def
ssh
(
request
):
'''
Show information and manipulate with SSH key.
'''
# Path to key, we default to RSA keys
key_path
=
os
.
path
.
expanduser
(
'~/.ssh/id_rsa.pub'
)
# Check whether we can generate SSH key
try
:
ret
=
os
.
system
(
'which ssh-keygen > /dev/null 2>&1'
)
can_generate
=
ret
==
0
...
...
@@ -54,6 +62,7 @@ def ssh(request):
except
:
messages
.
error
(
request
,
_
(
'Failed to generate key!'
))
# Read key data if it exists
if
os
.
path
.
exists
(
key_path
):
key_data
=
file
(
key_path
).
read
()
key_type
,
key_fingerprint
,
key_id
=
key_data
.
strip
().
split
()
...
...
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