|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | - <head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <link rel="stylesheet" href="css/about.css"> |
6 | | - </head> |
7 | | - <body> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <link rel="stylesheet" href="css/about.css"> |
| 7 | +</head> |
| 8 | + |
| 9 | +<body> |
8 | 10 | <div class="about"> |
9 | 11 | <img class="logo" src="../resources/zulip.png" /> |
10 | 12 | <p class="detail" id="version">v?.?.?</p> |
11 | 13 | <div class="maintenance-info"> |
12 | 14 | <p class="detail maintainer"> |
13 | | - Maintained by <a onclick="linkInBrowser('website')">Zulip</a> |
| 15 | + Maintained by |
| 16 | + <a onclick="linkInBrowser('website')">Zulip</a> |
14 | 17 | </p> |
15 | 18 | <p class="detail license"> |
16 | | - Available under the <a onclick="linkInBrowser('license')">Apache 2.0 License</a> |
| 19 | + Available under the |
| 20 | + <a onclick="linkInBrowser('license')">Apache 2.0 License</a> |
17 | 21 | </p> |
18 | 22 | <a class="bug" onclick="linkInBrowser('bug')" href="#">Found bug?</a> |
19 | 23 | </div> |
20 | 24 | </div> |
21 | 25 | <script> |
22 | 26 |
|
23 | | - const { app } = require('electron').remote; |
24 | | - const { shell } = require('electron'); |
25 | | - const version_tag = document.querySelector('#version'); |
26 | | - version_tag.innerHTML = 'v' + app.getVersion(); |
| 27 | + const { app } = require('electron').remote; |
| 28 | + const { shell } = require('electron'); |
| 29 | + const version_tag = document.querySelector('#version'); |
| 30 | + version_tag.innerHTML = 'v' + app.getVersion(); |
27 | 31 |
|
28 | | - function linkInBrowser(type) { |
29 | | - let url; |
30 | | - switch (type) { |
31 | | - case 'website': |
32 | | - url = "https://zulipchat.com"; |
33 | | - break; |
34 | | - case 'license': |
35 | | - url = "https://github.com/zulip/zulip-electron/blob/master/LICENSE"; |
36 | | - break; |
37 | | - default: |
38 | | - url = 'https://github.com/zulip/zulip-electron/issues/new?body=' + |
39 | | - '%3C!--Please%20describe%20your%20issue%20and%20steps%20to%20reproduce%20it.--%3E'; |
| 32 | + function linkInBrowser(type) { |
| 33 | + let url; |
| 34 | + switch (type) { |
| 35 | + case 'website': |
| 36 | + url = "https://zulipchat.com"; |
| 37 | + break; |
| 38 | + case 'license': |
| 39 | + url = "https://github.com/zulip/zulip-electron/blob/master/LICENSE"; |
| 40 | + break; |
| 41 | + default: |
| 42 | + url = 'https://github.com/zulip/zulip-electron/issues/new?body=' + |
| 43 | + '%3C!--Please%20describe%20your%20issue%20and%20steps%20to%20reproduce%20it.--%3E'; |
| 44 | + } |
| 45 | + shell.openExternal(url); |
40 | 46 | } |
41 | | - shell.openExternal(url); |
42 | | - } |
43 | 47 | </script> |
44 | | - </body> |
| 48 | + <script>require('./js/shared/preventdrag.js')</script> |
| 49 | +</body> |
45 | 50 | </html> |
0 commit comments