name.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <div class="d-flex">
  2. @if($row->logo)
  3. <img data-action='preview-img' src='{!! $row->logo !!}' style='max-width:40px;max-height:40px;cursor:pointer' class='img img-thumbnail' />&nbsp;&nbsp;
  4. @endif
  5. <span class="ext-name">
  6. @if($row->homepage)
  7. <a href='{!! $row->homepage !!}' target='_blank' class="feather {{ $linkIcon }}"></a>
  8. @endif
  9. @if($row->alias)
  10. {{ $row->alias }} <br><small class="text-80">{{ $value }}</small>
  11. @else
  12. {{ $value }}
  13. @endif
  14. </span>
  15. @if($row->new_version || ! $row->version)
  16. <span class="badge bg-primary">New</span>
  17. @endif
  18. </div>
  19. <div style="height: 10px"></div>
  20. @if($row->type === Dcat\Admin\Extend\ServiceProvider::TYPE_THEME)
  21. <span>{{ trans('admin.theme') }}</span>
  22. @endif
  23. @if($row->version)
  24. @if($row->type === Dcat\Admin\Extend\ServiceProvider::TYPE_THEME)
  25. &nbsp;|&nbsp;
  26. @endif
  27. @if($row->enabled)
  28. {!! $disableAction !!}
  29. @else
  30. {!! $enableAction !!}
  31. @endif
  32. <span class="hover-display" onclick="$(this).css({display: 'inline'})">
  33. | {!! $uninstallAction !!}
  34. </span>
  35. @endif
  36. <style>
  37. .badge {
  38. max-height: 22px
  39. }
  40. .hover-display {
  41. display:none;
  42. }
  43. table tbody tr:hover .hover-display {
  44. display: inline;
  45. }
  46. .ext-name {
  47. font-size: 1.15rem;
  48. }
  49. </style>