[Oi-commits] r1145 - in trunk: media/css profile templates/user
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Wed Mar 19 15:06:25 EET 2008
Author: jnmbk
Date: Wed Mar 19 15:06:25 2008
New Revision: 1145
Modified:
trunk/media/css/style.css
trunk/profile/views.py
trunk/templates/user/profile.html
Log:
initial user profile (will need much more makeup)
Modified: trunk/media/css/style.css
=================================================================
--- trunk/media/css/style.css (original)
+++ trunk/media/css/style.css Wed Mar 19 15:06:25 2008
@@ -790,6 +790,17 @@
font-size: 10px;
}
+#user_profile {
+ padding: 20px;
+}
+#user_profile_left {
+ float:left;
+ text-align: center;
+}
+#user_profile_right {
+ float:left;
+}
+
/** PAGINATOR **/
.paginator { padding:.5em .75em; font:normal .8em arial; }
Modified: trunk/profile/views.py
=================================================================
--- trunk/profile/views.py (original)
+++ trunk/profile/views.py Wed Mar 19 15:06:25 2008
@@ -70,6 +70,8 @@
def user_profile(request, name):
info = get_object_or_404(User, username=name)
+ if not info.is_active:
+ del info
return render_response(request, 'user/profile.html', locals())
def user_register(request):
Modified: trunk/templates/user/profile.html
=================================================================
--- trunk/templates/user/profile.html (original)
+++ trunk/templates/user/profile.html Wed Mar 19 15:06:25 2008
@@ -3,14 +3,11 @@
{% block title %}Kullanıcı: {{ infoname }} -{% endblock %}
{% block header_menu %}
- <!-- Burası header kısmı -->
- {% include "header.html" %}
+ {% include "header.html" %}
{% endblock %}
<br/>
{% block ust_menu %}
- <!-- Burası üst menü kısmı -->
- {% include "ust_menu_ayrinti.html" %}
-
+ {% include "ust_menu_ayrinti.html" %}
{% endblock %}
<br/>
@@ -19,14 +16,27 @@
{% block content %}
{% if info %}
-
-Ad: {{ info.first_name }} <br />
-Web: {{ info.get_profile.homepage }} <br />
-
+<div id="user_profile">
+ <h2>Kullanıcı profili: {{ info }}</h2>
+ <div id="user_profile_left">
+ <h3>Avatar</h3>
+ <img src="/media/dijital/img/forum/avatar.jpg" />
+ </div>
+ <div id="user_profile_right">
+ <ul>
+ <li>Ad: {{ info.first_name }}</li>
+ <li>Soyad: {{ info.last_name }}</li>
+ <li>Kayıt Tarihi: {{ info.date_joined }}</li>
+ {% if info.get_profile.show_email %}<li>E-posta: {{ info.email }}</li>{% endif %}
+ <li>Web: {{ info.get_profile.homepage }}</li>
+ <li>Şehir: {{ info.get_profile.get_city_display }}</li>
+ <li>Anlık Haberleşme: {{ info.get_profile.im }}</li>
+ <li>Doğum günü: {{ info.get_profile.birthday }}</li>
+ </ul>
+ </div>
+</div>
{% else %}
-
Böyle bir kullanıcı yok! <br />
-
{% endif %}
{% endblock %}
More information about the Oi-commits
mailing list