commit 2708d2ee7ac9bc1ce63ee3eb7241559ed9e29e46 Author: Karsten Loesing karsten.loesing@gmx.net Date: Fri Feb 14 16:32:03 2020 +0100
Display a bridge's distribution mechanism in RS.
Another part of #33008. --- src/main/resources/web/js/rs/models/relay.js | 1 + src/main/resources/web/templates/rs/details/bridge.html | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/src/main/resources/web/js/rs/models/relay.js b/src/main/resources/web/js/rs/models/relay.js index eeb0569..11d98fc 100644 --- a/src/main/resources/web/js/rs/models/relay.js +++ b/src/main/resources/web/js/rs/models/relay.js @@ -237,6 +237,7 @@ define([ relay.as = relay.as ? relay.as : null; relay.as_name = relay.as_name ? relay.as_name : null; relay.transports = relay.transports ? relay.transports : null; + relay.bridgedb_distributor = relay.bridgedb_distributor ? relay.bridgedb_distributor : null; relay.fingerprint = relay.hashed_fingerprint ? relay.hashed_fingerprint : relay.fingerprint; model.set({badexit: false}); relay.flags = model.parseflags(relay.flags, relay.is_bridge); diff --git a/src/main/resources/web/templates/rs/details/bridge.html b/src/main/resources/web/templates/rs/details/bridge.html index d4bf602..a3a5958 100644 --- a/src/main/resources/web/templates/rs/details/bridge.html +++ b/src/main/resources/web/templates/rs/details/bridge.html @@ -80,6 +80,9 @@ <dt><span class="tip" title="Transport protocols supported by this bridge.">Transport protocols</span></dt> <dd><%= relay.get('transports') ? relay.get('transports') : 'none' %></dd>
+ <dt><span class="tip" title="BridgeDB distributor that this bridge is currently assigned to.">Bridge distribution mechanism</span></dt> + <dd><%= relay.get('bridgedb_distributor') ? relay.get('bridgedb_distributor') : 'none' %></dd> + </dl> </div> </div>
tor-commits@lists.torproject.org