[SLOYD] Add run button
This commit is contained in:
parent
ce0ae467f2
commit
68bb649c32
1 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@
|
|||
<a class="active item" data-tab="write">{{svg "octicon-code"}} {{if .IsNewFile}}{{ctx.Locale.Tr "repo.editor.new_file"}}{{else}}{{ctx.Locale.Tr "repo.editor.edit_file"}}{{end}}</a>
|
||||
<a class="item" data-tab="preview" data-url="{{.Repository.Link}}/markup" data-context="{{.RepoLink}}" data-branch-path="{{.BranchNameSubURL}}" data-markup-mode="file">{{svg "octicon-eye"}} {{ctx.Locale.Tr "preview"}}</a>
|
||||
<a class="item" data-tab="run" data-url="{{.Repository.Link}}/markup" data-context="{{.RepoLink}}/src/{{.BranchNameSubURL}}" data-markup-mode="file">{{svg "octicon-paper-airplane"}} {{ctx.Locale.Tr "Run"}}</a>
|
||||
<a class="item" data-tab="run" >{{svg "octicon-paper-airplane"}} {{ctx.Locale.Tr "Run"}}</a>
|
||||
<a class="item" data-tab="preview" data-url="{{.Repository.Link}}/markup" data-context="{{.RepoLink}}/src/{{.BranchNameSubURL}}" data-markup-mode="file">{{svg "octicon-eye"}} {{ctx.Locale.Tr "preview"}}</a>
|
||||
{{if not .IsNewFile}}
|
||||
<a class="item" data-tab="diff" hx-params="context,content" hx-vals='{"context":"{{.BranchLink}}"}' hx-include="#edit_area" hx-swap="innerHTML" hx-target=".tab[data-tab='diff']" hx-indicator=".tab[data-tab='diff']" hx-post="{{.RepoLink}}/_preview/{{.BranchName | PathEscapeSegments}}/{{.TreePath | PathEscapeSegments}}">{{svg "octicon-diff"}} {{ctx.Locale.Tr "repo.editor.preview_changes"}}</a>
|
||||
|
|
@ -44,7 +45,7 @@
|
|||
<div class="editor-loading is-loading"></div>
|
||||
</div>
|
||||
<!-- <div class="ui bottom attached tab segment markup" data-tab="run"> -->
|
||||
<div class="ui bottom attached tab segment markup" data-tab="run">
|
||||
<div class="ui tab" data-tab="run">
|
||||
<button>click me</button>
|
||||
<input type="text" id="english" placeholder="Type English here..." />
|
||||
<button py-click="translate_english">Translate</button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue