mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
c4aa223698
Show function definition and use button under prompt demo when prompt demo is selected
11 lines
667 B
HTML
11 lines
667 B
HTML
<div style="padding: 0 10px 15px;">
|
|
<div ng-repeat="prompt in samplePrompts">
|
|
<div class="prompt_demo_choice_label">{{ prompt.name }}</div>
|
|
<div ng-bind-html-unsafe='prompt.demo' ng-class="{'prompt_demo': true, 'prompt_demo_selected': prompt == selectedPrompt}" ng-click="selectPrompt(prompt)"></div>
|
|
<div class="prompt_function" ng-show="selectedPrompt == prompt">
|
|
<div class="prompt_function_text">{{ prompt.function }}</div>
|
|
</div>
|
|
<span class="prompt_save_button" ng-click="setNewPrompt(selectedPrompt)" ng-show="selectedPrompt == prompt && selectedPrompt != samplePrompts[0]">Use</span>
|
|
</div>
|
|
</div>
|