|
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container padded">
|
|
<div class="tw-flex tw-justify-between tw-items-center tw-mb-4">
|
|
{{template "repo/issue/navbar" .}}
|
|
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
|
</div>
|
|
</div>
|
|
<div class="ui container fluid padded">
|
|
{{template "projects/view" .}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|
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
}
});