Skip to content

Commit

Permalink
changed from message list markup from definition list to unordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsteele committed Apr 15, 2011
1 parent 2481754 commit 62c9dd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
9 changes: 4 additions & 5 deletions geocamTalk/templates/geocamTalk/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@
authorFullname = '<a href="{% url geocamTalk.views.message_list recipient.username %}/' +authorUsername+ '">' +authorFullname+ '</a>' ;
{% endif %}

html_str += '<dt id="message_'+pk+'">';
html_str += '<li id="message_'+pk+'"><p id="message_'+pk+'_header">';
html_str += 'On '+content_timestamp+' '+authorFullname+' said';
if (has_geolocation == true) {
html_str += '<a data-rel="dialog" data-transition="pop" data-inline="true" data-role="button" data-icon="geoCam-map" data-iconpos="notext">Map Info</a>';
}
html_str += '</dt>';
html_str += '<dd id="message_'+pk+'_content">';
html_str += '<p>'+content+'</p>';
html_str += '</dd>';
html_str += '</p>';
html_str += '<p id="message_'+pk+'_content">'+content+'</p>';
html_str += '</li>';
}

$.mobile.activePage.page().find('#message_list').prepend(html_str);
Expand Down
16 changes: 9 additions & 7 deletions geocamTalk/templates/geocamTalk/message_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ <h1>
{% endif %}
</h1>
<div id="messages">
<dl id="message_list">
<ul id="message_list">
{% for m in gc_msg %}
<dt id="message_{{m.pk}}">
<li id="message_{{m.pk}}">
<p id="message_{{m.pk}}_header">
On {{ m.get_date_string }}
{% if recipient %}
<a href="{% url geocamTalk.views.message_list recipient.username m.author.username %}">
Expand All @@ -47,12 +48,13 @@ <h1>
{% if m.has_audio %}
<a class="media" href="{{m.audio_file.url}}"></a>
{%endif%}
</dt>
<dd id="message_{{m.pk}}_content">
<p>{{ m.content}}</p>
</dd>
</p>
<p id="message_{{m.pk}}_content">
{{ m.content}}
</p>
</li>
{% endfor %}
</dl>
</ul>
</div>
{% endblock %}

Expand Down

0 comments on commit 62c9dd6

Please sign in to comment.