Browse Source

- Update the changelog

- Update to 0.8.1
- Fix minor mobile UI issues
- Add the status in the Roster
- Hide some stuffs on mobile
pull/16/head
Jaussoin Timothée 11 years ago
parent
commit
2d3b95e7fc
  1. 6
      CHANGELOG.md
  2. 21
      app/models/postn/PostnDAO.php
  3. 1
      app/views/about.tpl
  4. 8
      app/widgets/Discover/discover.tpl
  5. 2
      app/widgets/Explore/explore.tpl
  6. 7
      app/widgets/Login/login.css
  7. 4
      app/widgets/Roster/_roster_contact.tpl
  8. 2
      app/widgets/WidgetCommon/_post.tpl
  9. 2
      manifest.webapp

6
CHANGELOG.md

@ -3,12 +3,16 @@ Movim Changelog
v0.8.1 (trunk)
---------------------------
* Add charts in the Statistics
* Add a Caps support table
* Fix some Jingle issues
* New Mud actions to create/update the database and change the administration configuration
* New InitAccount widget to create persistent PEP node on the first login
* Clean the Feed widget
* Fix various CSS bugs
* Fix various CSS bugs + fix mobile UI
* Add title attribute to some truncated texts
* Add a new fancy login system
* Show the status in the Roster
v0.8.0
---------------------------

21
app/models/postn/PostnDAO.php

@ -220,6 +220,27 @@ class PostnDAO extends SQL {
return $this->run('ContactPostn');
}
function getAllPosts($jid, $limitf = false, $limitr = false) {
$this->_sql = '
select *, postn.aid, privacy.value as privacy from postn
left outer join contact on postn.aid = contact.jid
left outer join privacy on postn.nodeid = privacy.pkey
where postn.session = :session
order by postn.published desc';
if($limitr)
$this->_sql = $this->_sql.' limit '.$limitr.' offset '.$limitf;
$this->prepare(
'Postn',
array(
'session' => $jid
)
);
return $this->run('ContactPostn');
}
function getFeed($limitf = false, $limitr = false) {
$this->_sql = '

1
app/views/about.tpl

@ -10,5 +10,6 @@
<div id="center">
<?php $this->widget('About');?>
<?php $this->widget('Caps');?>
<?php $this->widget('Search');?>
</div>
</div>

8
app/widgets/Discover/discover.tpl

@ -7,16 +7,16 @@
<img class="avatar" src="{$value->getPhoto('xs')}"/>
<a href="{$c->route('blog', array($value->jid, 'urn:xmpp:microblog:0'))}">
{if="$value->getAge()"}
<span class="tag blue">{$value->getAge()}</span>
<span class="tag blue on_desktop">{$value->getAge()}</span>
{/if}
{if="$value->getGender()"}
<span class="tag green">{$value->getGender()}</span>
<span class="tag green on_desktop">{$value->getGender()}</span>
{/if}
{if="$value->getMarital()"}
<span class="tag yellow">{$value->getMarital()}</span>
<span class="tag yellow on_desktop">{$value->getMarital()}</span>
{/if}
<span class="content">{$value->getTrueName()}</span>
<span class="desc">{$value->description|strip_tags}</span>
<span class="desc on_desktop">{$value->description|strip_tags}</span>
</a>
</li>
{/loop}

2
app/widgets/Explore/explore.tpl

@ -26,7 +26,7 @@
<span class="tag yellow on_desktop">{$value->getMarital()}</span>
{/if}
<span class="content">{$value->getTrueName()}</span>
<span class="desc">{$value->description|strip_tags}</span>
<span class="desc on_desktop">{$value->description|strip_tags}</span>
</a>
</li>
{/loop}

7
app/widgets/Login/login.css

@ -151,7 +151,12 @@ body {
#loginpage #sessions ul li span {
color: white;
line-height: 2.8em;
padding: 1em;
white-space: nowrap;
text-overflow: ellipsis;
text-indent: 0.5em;
width: 65%;
display: inline-block;
overflow: hidden;
}
/* States */

4
app/widgets/Roster/_roster_contact.tpl

@ -5,7 +5,7 @@
<ul class="contact">
{loop="$contact"}
<li
title="{$value.jid}{if="$value.status != ''"} - {$value.status}{/if}"
title="{$value.jid}{if="$value.status != ''"} - {$value.status}{/if} - {$value.ressource}"
class="{$value.presencetxt} {$value.inactive} {if="$value.client"}client {$value.client}{/if}">
<div
class="chat on"
@ -42,7 +42,7 @@
src="{$value.avatar}"
alt="avatar"
/>{$value.name}
<span class="ressource">{$value.ressource}</span>
<span class="ressource">{if="$value.status != ''"}{$value.status} -{/if} {$value.ressource}</span>
</a>
</li>
{/loop}

2
app/widgets/WidgetCommon/_post.tpl

@ -5,7 +5,7 @@
<a href="{$friend}">
{$avatar}
</a>
<span class="title">{$title}</span>
<span class="title" title="{$title}">{$title}</span>
<span class="contact">{$contact}</span>
<span class="date">{$date}</span>
</header>

2
manifest.webapp

@ -1,5 +1,5 @@
{
"version": "0.8",
"version": "0.8.1",
"name": "Movim",
"description": "Kick Ass Social Network, decentralized and fully based on XMPP ",
"icons": {

Loading…
Cancel
Save