File tree Expand file tree Collapse file tree 11 files changed +24
-19
lines changed Expand file tree Collapse file tree 11 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,10 @@ $(document).ready(function () {
878
878
img_dir : suburl + '/img/emoji' ,
879
879
ignore_emoticons : true
880
880
} ) ;
881
- emojify . run ( ) ;
881
+ var hasEmoji = document . getElementsByClassName ( 'has-emoji' ) ;
882
+ for ( var i = 0 ; i < hasEmoji . length ; i ++ ) {
883
+ emojify . run ( hasEmoji [ i ] ) ;
884
+ }
882
885
883
886
// Clipboard JS
884
887
var clipboard = new Clipboard ( '.clipboard' ) ;
Original file line number Diff line number Diff line change 16
16
<span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
17
17
</div>
18
18
</div>
19
- {{if .Description}}<p>{{.Description}}</p>{{end}}
19
+ {{if .Description}}<p class="has-emoji" >{{.Description}}</p>{{end}}
20
20
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
21
21
</div>
22
22
{{end}}
Original file line number Diff line number Diff line change 35
35
<img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/> {{.Author.Name}}
36
36
{{end}}
37
37
</td>
38
- <td class="message collapsing">
38
+ <td class="message collapsing has-emoji ">
39
39
<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a>
40
40
{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}
41
41
</td>
Original file line number Diff line number Diff line change 3
3
{{template "repo/header" .}}
4
4
<div class="ui container">
5
5
<p id="repo-desc">
6
- {{if .Repository.DescriptionHtml}}<span class="description">{{.Repository.DescriptionHtml}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
6
+ {{if .Repository.DescriptionHtml}}<span class="description has-emoji ">{{.Repository.DescriptionHtml}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
7
7
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
8
8
</p>
9
9
<div class="ui secondary menu">
Original file line number Diff line number Diff line change 102
102
{{ $timeStr:= TimeSince .Created $.Lang }}
103
103
<li class="item">
104
104
<div class="ui {{if .IsRead}}black{{else}}green{{end}} label">#{{.Index}}</div>
105
- <a class="title" href="{{$.Link}}/{{.Index}}">{{.Name}}</a>
105
+ <a class="title has-emoji " href="{{$.Link}}/{{.Index}}">{{.Name}}</a>
106
106
107
107
{{range .Labels}}
108
108
<a class="ui label" href="{{$.Link}}?type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}">{{.Name}}</a>
Original file line number Diff line number Diff line change 16
16
{{if .Issue.IsPull}}
17
17
{{template "repo/issue/view_title" .}}
18
18
{{template "repo/pulls/tab_menu" .}}
19
- <div class="ui bottom attached tab pull segment active" data-tab="request-{{.ID}}">
19
+ <div class="ui bottom attached tab pull segment active has-emoji " data-tab="request-{{.ID}}">
20
20
{{template "repo/issue/view_content" .}}
21
21
</div>
22
22
{{else}}
23
- {{template "repo/issue/view_content" .}}
23
+ <div class="has-emoji">
24
+ {{template "repo/issue/view_content" .}}
25
+ </div>
24
26
{{end}}
25
27
</div>
26
28
</div>
Original file line number Diff line number Diff line change 1
1
<div class="sixteen wide column title">
2
2
<div class="ui grid">
3
3
<h1 class="twelve wide column">
4
- <span class="index">#{{.Issue.Index}}</span> <span id="issue-title">{{.Issue.Name}}</span>
4
+ <span class="index">#{{.Issue.Index}}</span> <span id="issue-title" class="has-emoji" >{{.Issue.Name}}</span>
5
5
<div id="edit-title-input" class="ui input" style="display: none">
6
6
<input value="{{.Issue.Name}}">
7
7
</div>
Original file line number Diff line number Diff line change 24
24
{{end}}
25
25
</h4>
26
26
<div class="ui attached table segment">
27
- <div class="file-view {{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
27
+ <div class="file-view {{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}} has-emoji ">
28
28
{{if .ReadmeExist}}
29
29
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
30
30
{{else if not .IsFileText}}
Original file line number Diff line number Diff line change 10
10
<strong>{{.LastCommit.Author.Name}}</strong>
11
11
{{end}}
12
12
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LastCommit.ID}}" rel="nofollow">{{ShortSha .LastCommit.ID.String}}</a>
13
- <span class="grey">{{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
13
+ <span class="grey has-emoji ">{{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}}</span>
14
14
</th>
15
15
<th class="nine wide">
16
16
</th>
42
42
<a href="{{EscapePound $.BranchLink}}/{{EscapePound $.TreePath}}{{EscapePound $entry.Name}}">{{$entry.Name}}</a>
43
43
</td>
44
44
{{end}}
45
- <td class="message collapsing">
45
+ <td class="message collapsing has-emoji ">
46
46
<a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a>
47
47
{{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}}
48
48
</td>
Original file line number Diff line number Diff line change 46
46
{{ $repoLink := .GetRepoLink}}
47
47
{{if $push.Commits}}
48
48
{{range $push.Commits}}
49
- <li><img class="img-8" src="{{$push.AvatarLink .AuthorEmail}}"> <a class="commit-id" href="{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text truncate light grey">{{.Message}}</span></li>
49
+ <li><img class="img-8" src="{{$push.AvatarLink .AuthorEmail}}"> <a class="commit-id" href="{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text truncate light grey has-emoji ">{{.Message}}</span></li>
50
50
{{end}}
51
51
{{end}}
52
52
{{if and (gt $push.Len 1) $push.CompareUrl}}<li><a href="{{AppSubUrl}}/{{$push.CompareUrl}}">{{$.i18n.Tr "action.compare_commits" $push.Len}} »</a></li>{{end}}
53
53
</ul>
54
54
</div>
55
55
{{else if eq .GetOpType 6}}
56
- <span class="text truncate issue title">{{index .GetIssueInfos 1}}</span>
56
+ <span class="text truncate issue title has-emoji ">{{index .GetIssueInfos 1}}</span>
57
57
{{else if eq .GetOpType 7}}
58
- <p class="text light grey">{{index .GetIssueInfos 1}}</p>
58
+ <p class="text light grey has-emoji ">{{index .GetIssueInfos 1}}</p>
59
59
{{else if eq .GetOpType 10}}
60
- <span class="text truncate issue title">{{.GetIssueTitle}}</span>
61
- <p class="text light grey">{{index .GetIssueInfos 1}}</p>
60
+ <span class="text truncate issue title has-emoji ">{{.GetIssueTitle}}</span>
61
+ <p class="text light grey has-emoji ">{{index .GetIssueInfos 1}}</p>
62
62
{{else if eq .GetOpType 11}}
63
- <p class="text light grey">{{index .GetIssueInfos 1}}</p>
63
+ <p class="text light grey has-emoji ">{{index .GetIssueInfos 1}}</p>
64
64
{{else if (or (eq .GetOpType 12) (eq .GetOpType 13))}}
65
- <span class="text truncate issue title">{{.GetIssueTitle}}</span>
65
+ <span class="text truncate issue title has-emoji ">{{.GetIssueTitle}}</span>
66
66
{{end}}
67
67
<p class="text italic light grey">{{TimeSince .GetCreate $.i18n.Lang}}</p>
68
68
</div>
Original file line number Diff line number Diff line change 62
62
{{ $timeStr:= TimeSince .Created $.Lang }}
63
63
<li class="item">
64
64
<div class="ui label">{{if not $.RepoID}}{{.Repo.Name}}{{end}}#{{.Index}}</div>
65
- <a class="title" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Name}}</a>
65
+ <a class="title has-emoji " href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Name}}</a>
66
66
67
67
{{if .NumComments}}
68
68
<span class="comment ui right"><i class="octicon octicon-comment"></i> {{.NumComments}}</span>
You can’t perform that action at this time.
0 commit comments