blob: 9d816af1c45a237c5a9419b57121c1ca79d3d6d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "_globals.h"
#include "column_group.h"
/*
* ColGroup
*/
void ColGroup::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const
{
if (row == 1)
{
writeRowspanTD(tos, getCustomTitle(i18n(muT("Group")), i18n(muT("Group"))), row, 1, rowSpan);
}
}
void ColGroup::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display)
{
if (display == asContact)
{
ext::string groupName = contact.getGroup();
// replace subgroup separator with something better (really better?)
utils::replaceAllInPlace(groupName, muT("\\"), muT(" > "));
tos << muT("<td>") << utils::htmlEscape(groupName) << muT("</td>") << ext::endl;
}
else
{
tos << muT("<td> </td>");
}
}
|