|
<div class="ui fluid vertical menu">
|
|
<a class="{{if .PageIsPulse}}active {{end}}item" href="{{.RepoLink}}/activity">
|
|
{{ctx.Locale.Tr "repo.activity.navbar.pulse"}}
|
|
</a>
|
|
<a class="{{if .PageIsContributors}}active {{end}}item" href="{{.RepoLink}}/activity/contributors">
|
|
{{ctx.Locale.Tr "repo.activity.navbar.contributors"}}
|
|
</a>
|
|
<a class="{{if .PageIsCodeFrequency}}active{{end}} item" href="{{.RepoLink}}/activity/code-frequency">
|
|
{{ctx.Locale.Tr "repo.activity.navbar.code_frequency"}}
|
|
</a>
|
|
<a class="{{if .PageIsRecentCommits}}active{{end}} item" href="{{.RepoLink}}/activity/recent-commits">
|
|
{{ctx.Locale.Tr "repo.activity.navbar.recent_commits"}}
|
|
</a>
|
|
</div>
|
marked.setOptions({
highlight: function (code, lang) {
// Use highlight.js to highlight the code
const language = hljs.getLanguage(lang) ? lang : 'plaintext'; // Fallback to 'plaintext' if no language is found
return hljs.highlight(language, code).value; // Return the highlighted code
}
});