Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
aefe6fd3
Commit
aefe6fd3
authored
17 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
order resources and status the same way in information window. fixes #3225
parent
55aa74af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vcard.py
+15
-9
15 additions, 9 deletions
src/vcard.py
with
15 additions
and
9 deletions
src/vcard.py
+
15
−
9
View file @
aefe6fd3
...
...
@@ -258,18 +258,24 @@ class VcardWindow:
connected_contact_list
=
contact_list
# stats holds show and status message
stats
=
''
one
=
True
# Are we adding the first line ?
if
connected_contact_list
:
# Start with self.contact, as with resources
stats
=
helpers
.
get_uf_show
(
self
.
contact
.
show
)
if
self
.
contact
.
status
:
stats
+=
'
:
'
+
self
.
contact
.
status
if
self
.
contact
.
last_status_time
:
stats
+=
'
\n
'
+
_
(
'
since %s
'
)
%
time
.
strftime
(
'
%c
'
,
self
.
contact
.
last_status_time
).
decode
(
locale
.
getpreferredencoding
())
for
c
in
connected_contact_list
:
if
not
on
e
:
if
c
.
resource
!=
self
.
contact
.
resourc
e
:
stats
+=
'
\n
'
stats
+=
helpers
.
get_uf_show
(
c
.
show
)
if
c
.
status
:
stats
+=
'
:
'
+
c
.
status
if
c
.
last_status_time
:
stats
+=
'
\n
'
+
_
(
'
since %s
'
)
%
time
.
strftime
(
'
%c
'
,
c
.
last_status_time
).
decode
(
locale
.
getpreferredencoding
())
one
=
False
stats
+=
helpers
.
get_uf_show
(
c
.
show
)
if
c
.
status
:
stats
+=
'
:
'
+
c
.
status
if
c
.
last_status_time
:
stats
+=
'
\n
'
+
_
(
'
since %s
'
)
%
time
.
strftime
(
'
%c
'
,
c
.
last_status_time
).
decode
(
locale
.
getpreferredencoding
())
else
:
# Maybe gc_vcard ?
stats
=
helpers
.
get_uf_show
(
self
.
contact
.
show
)
if
self
.
contact
.
status
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment