aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/footer.js
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-01-01 15:37:42 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-01-01 15:37:42 +1300
commitc9ce5094c810b551de3cddebf14f277a61657e16 (patch)
tree6eb4a6c5c1c43c99b6e66eab3b7d4f31c92ac8c0 /web/src/js/components/footer.js
parent67f6f67c48928ca56abfc5395be42b6643a16295 (diff)
downloadmitmproxy-c9ce5094c810b551de3cddebf14f277a61657e16.tar.gz
mitmproxy-c9ce5094c810b551de3cddebf14f277a61657e16.tar.bz2
mitmproxy-c9ce5094c810b551de3cddebf14f277a61657e16.zip
All files and only files in in js/components are jsx
So remove the redundant naming
Diffstat (limited to 'web/src/js/components/footer.js')
-rw-r--r--web/src/js/components/footer.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/src/js/components/footer.js b/web/src/js/components/footer.js
new file mode 100644
index 00000000..d04fb615
--- /dev/null
+++ b/web/src/js/components/footer.js
@@ -0,0 +1,17 @@
+var React = require("react");
+
+var Footer = React.createClass({
+ render: function () {
+ var mode = this.props.settings.mode;
+ var intercept = this.props.settings.intercept;
+ return (
+ <footer>
+ {mode != "regular" ? <span className="label label-success">{mode} mode</span> : null}
+ &nbsp;
+ {intercept ? <span className="label label-success">Intercept: {intercept}</span> : null}
+ </footer>
+ );
+ }
+});
+
+module.exports = Footer; \ No newline at end of file