[extensions-web] Make the template filenames more consistent.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Make the template filenames more consistent.
- Date: Fri, 30 Sep 2011 17:39:58 +0000 (UTC)
commit f55b046cd173307bac8fc325c017ab0650c175e0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 27 11:11:46 2011 -0400
Make the template filenames more consistent.
.../auth/{profile-edit.html => profile_edit.html} | 0
sweettooth/auth/views.py | 2 +-
.../extensions/{upload-file.html => upload.html} | 0
sweettooth/extensions/views.py | 2 +-
4 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/auth/templates/auth/profile-edit.html b/sweettooth/auth/templates/auth/profile_edit.html
similarity index 100%
rename from sweettooth/auth/templates/auth/profile-edit.html
rename to sweettooth/auth/templates/auth/profile_edit.html
diff --git a/sweettooth/auth/views.py b/sweettooth/auth/views.py
index aff2012..9cefde6 100644
--- a/sweettooth/auth/views.py
+++ b/sweettooth/auth/views.py
@@ -15,7 +15,7 @@ def profile(request, user):
template = 'auth/profile.html'
if request.user == user:
- template = 'auth/profile-edit.html'
+ template = 'auth/profile_edit.html'
display_name = userobj.get_full_name() or userobj.username
extensions = Extension.objects.filter(creator=userobj)
diff --git a/sweettooth/extensions/templates/extensions/upload-file.html b/sweettooth/extensions/templates/extensions/upload.html
similarity index 100%
rename from sweettooth/extensions/templates/extensions/upload-file.html
rename to sweettooth/extensions/templates/extensions/upload.html
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index a3170da..eec1634 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -270,4 +270,4 @@ def upload_file(request, pk):
else:
form = UploadForm()
- return render(request, 'extensions/upload-file.html', dict(form=form))
+ return render(request, 'extensions/upload.html', dict(form=form))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]