Changeset a4f8618 in trunk


Ignore:
Timestamp:
2020-04-27T20:55:10Z (5 years ago)
Author:
Sajith Sasidharan <sajith@…>
Branches:
master
Children:
622d1562
Parents:
c86d434
Message:

Render introducer description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/web/root.py

    rc86d434 ra4f8618  
    370370        return ctx.tag[ul]
    371371
    372     def data_introducer_description(self, ctx, data):
    373         connected_count = self.data_connected_introducers( ctx, data )
     372    @renderer
     373    def introducer_description(self, req, tag):
     374        connected_count = self._connected_introducers()
    374375        if connected_count == 0:
    375             return "No introducers connected"
     376            return tag("No introducers connected")
    376377        elif connected_count == 1:
    377             return "1 introducer connected"
     378            return tag("1 introducer connected")
    378379        else:
    379             return "%s introducers connected" % (connected_count,)
     380            return tag("%s introducers connected" % (connected_count,))
    380381
    381382    def data_total_introducers(self, ctx, data):
Note: See TracChangeset for help on using the changeset viewer.