Commits

Tino de Bruijn committed 709e206

Fixed list displays

  • Participants
  • Parent commits 0d8ab58

Comments (0)

Files changed (2)

         <a href="#settings" data-icon="gear" class="ui-btn-right">Settings</a>
       </header>
       <div data-role="content">
-        <ul data-role="listview" data-theme="a" id="feed-list"></ul>
+        <ul data-role="listview" data-theme="d" id="feed-list"></ul>
       </div>
       <footer data-role="footer" data-position="fixed">
         <center>Powered by Pachube</center>
     <!-- Templates below -->
     
     <script id="feed-list-template" type="text/x-jquery-tmpl">
-      <li role="option" data-id="${id}" tabindex="0" class="feed ui-li-has-icon ui-li ui-btn ui-btn-icon-right ui-btn-up-c">
-        <div class="ui-btn-inner">
-          <span class="ui-icon ui-icon-arrow-r"></span>
-          <div class="ui-btn-text">
-                 <img src="img/feed_bullet.png" alt="Feed" class="ui-li-icon ui-li-thumb">
-                 <a href="#page-feed-${id}" class="view-feed ui-link-inherit"> ${title} </a>
-                 <span>${description}</span>
-          </div>
-        </div>
+      <li role="option" data-id="${id}" tabindex="0" class="feed">
+        <a href="#page-feed-${id}" class="view-feed ui-link-inherit"> 
+          <img src="img/feed_bullet.png" alt="Feed" class="ui-li-icon">
+          <h3>${title}</h3>
+          <p>${description}</p>
+        </a>
       </li>
     </script>
     
         </header>
         <div data-role="content">
           <h2>${description}</h2>
-          <p><h3>Tags</h3>${tags}</p>
-          <span>${status}</span>
-          <span>${tags}</span>
-          <ul data-role="listview">
+          <section>
+            <h3>Tags</h3>
+            <p>${tags}</p>
+          </section>
+          <section>
+            <h3>Status</h3>
+            <p>${status}</p>
+          </section>
+          <ul data-role="listview" data-inset="true">
             {{each datastreams}}
             <li role="option" data-id="${id}" tabindex="0" class="datastream ui-li-has-icon ui-li ui-btn ui-btn-icon-right ui-btn-up-c" data-theme="b">
                 <span class="ui-icon ui-icon-arrow-r"></span>
     $.storage.set('feed_id_list', feed_id_list);
     $('#feed-list').children().remove();
     $('#feed-list-template').tmpl(feeds).appendTo('#feed-list');
+    $('#feed-list').listview('refresh');
     // Childpages are created when needed through a click event. See below
 }