File tree Expand file tree Collapse file tree 3 files changed +31
-17
lines changed Expand file tree Collapse file tree 3 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 6
6
< div class ="about " hidden >
7
7
< img class ="logo " src ="../resources/zulip.png " />
8
8
< p class ="detail " id ="version "> </ p >
9
- < div class ="maintenance-info ">
10
- < p class ="detail maintainer ">
11
- Maintained by
12
- < a href ="https://zulip.com " target ="_blank " rel ="noopener noreferrer "
13
- > Zulip</ a
14
- >
15
- </ p >
16
- < p class ="detail license ">
17
- Available under the
18
- < a
19
- href ="https://github.com/zulip/zulip-desktop/blob/main/LICENSE "
20
- target ="_blank "
21
- rel ="noopener noreferrer "
22
- > Apache 2.0 License</ a
23
- >
24
- </ p >
25
- </ div >
26
9
</ div >
Original file line number Diff line number Diff line change 1
1
import { app } from "@electron/remote" ;
2
2
3
+ import { Html , html } from "../../../common/html.js" ;
3
4
import { bundleUrl } from "../../../common/paths.js" ;
5
+ import * as t from "../../../common/translation-util.js" ;
6
+ import { generateNodeFromHtml } from "../components/base.js" ;
4
7
5
8
export class AboutView {
6
9
static async create ( ) : Promise < AboutView > {
@@ -16,6 +19,32 @@ export class AboutView {
16
19
const $shadow = this . $view . attachShadow ( { mode : "open" } ) ;
17
20
$shadow . innerHTML = templateHtml ;
18
21
$shadow . querySelector ( "#version" ) ! . textContent = `v${ app . getVersion ( ) } ` ;
22
+ const maintenanceInfoHtml = html `
23
+ < div class ="maintenance-info ">
24
+ < p class ="detail maintainer ">
25
+ ${ new Html ( {
26
+ html : t . __ ( "Maintained by {{{link}}}Zulip{{{endLink}}}" , {
27
+ link : '<a href="https://zulip.com" target="_blank" rel="noopener noreferrer">' ,
28
+ endLink : "</a>" ,
29
+ } ) ,
30
+ } ) }
31
+ </ p >
32
+ < p class ="detail license ">
33
+ ${ new Html ( {
34
+ html : t . __ (
35
+ "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}" ,
36
+ {
37
+ link : '<a href="https://github.com/zulip/zulip-desktop/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">' ,
38
+ endLink : "</a>" ,
39
+ } ,
40
+ ) ,
41
+ } ) }
42
+ </ p >
43
+ </ div >
44
+ ` ;
45
+ $shadow
46
+ . querySelector ( ".about" ) !
47
+ . append ( generateNodeFromHtml ( maintenanceInfoHtml ) ) ;
19
48
}
20
49
21
50
destroy ( ) {
Original file line number Diff line number Diff line change 17
17
"Ask where to save files before downloading" : " Ask where to save files before downloading" ,
18
18
"Auto hide Menu bar" : " Auto hide Menu bar" ,
19
19
"Auto hide menu bar (Press Alt key to display)" : " Auto hide menu bar (Press Alt key to display)" ,
20
+ "Available under the {{{link}}}Apache 2.0 License{{{endLink}}}" : " Available under the {{{link}}}Apache 2.0 License{{{endLink}}}" ,
20
21
"Back" : " Back" ,
21
22
"Bounce dock on new private message" : " Bounce dock on new private message" ,
22
23
"Change" : " Change" ,
73
74
"Log Out" : " Log Out" ,
74
75
"Log Out of Organization" : " Log Out of Organization" ,
75
76
"Look Up" : " Look Up" ,
77
+ "Maintained by {{{link}}}Zulip{{{endLink}}}" : " Maintained by {{{link}}}Zulip{{{endLink}}}" ,
76
78
"Manual proxy configuration" : " Manual proxy configuration" ,
77
79
"Minimize" : " Minimize" ,
78
80
"Mute all sounds from Zulip" : " Mute all sounds from Zulip" ,
You can’t perform that action at this time.
0 commit comments