本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.4KB

  1. <div class="ui dropdown tiny button">
  2. {{.i18n.Tr "repo.diff.whitespace_button"}}
  3. <i class="dropdown icon"></i>
  4. <div class="menu">
  5. <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=">
  6. <i class="circle {{ if eq .WhitespaceBehavior "" }}dot{{else}}outline{{end}} icon"></i>
  7. {{.i18n.Tr "repo.diff.whitespace_show_everything"}}
  8. </a>
  9. <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all">
  10. <i class="circle {{ if eq .WhitespaceBehavior "ignore-all" }}dot{{else}}outline{{end}} icon"></i>
  11. {{.i18n.Tr "repo.diff.whitespace_ignore_all_whitespace"}}
  12. </a>
  13. <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change">
  14. <i class="circle {{ if eq .WhitespaceBehavior "ignore-change" }}dot{{else}}outline{{end}} icon"></i>
  15. {{.i18n.Tr "repo.diff.whitespace_ignore_amount_changes"}}
  16. </a>
  17. <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol">
  18. <i class="circle {{ if eq .WhitespaceBehavior "ignore-eol" }}dot{{else}}outline{{end}} icon"></i>
  19. {{.i18n.Tr "repo.diff.whitespace_ignore_at_eol"}}
  20. </a>
  21. </div>
  22. </div>
  23. <a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}&whitespace={{$.WhitespaceBehavior}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
上海开阖软件有限公司 沪ICP备12045867号-1