ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Record data

{
  "uri": "at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo.pull/3lma5z5jpm722",
  "cid": "bafyreib353zbcothjjln2naaxrtgbz2tsvrqb67wbuwpoehieubqqxfsxq",
  "value": {
    "$type": "sh.tangled.repo.pull",
    "patch": "diff --git a/appview/pages/pages.go b/appview/pages/pages.go\nindex 747246c2998f2f633c930178599bef81a0a2ff84..4c99bfd29c207788d46d864b982f1258a4afd517 100644\n--- a/appview/pages/pages.go\n+++ b/appview/pages/pages.go\n@@ -292,13 +292,13 @@ }\n \n func (r RepoInfo) GetTabs() [][]string {\n \ttabs := [][]string{\n-\t\t{\"overview\", \"/\"},\n-\t\t{\"issues\", \"/issues\"},\n-\t\t{\"pulls\", \"/pulls\"},\n+\t\t{\"overview\", \"/\", \"square-chart-gantt\"},\n+\t\t{\"issues\", \"/issues\", \"circle-dot\"},\n+\t\t{\"pulls\", \"/pulls\", \"git-pull-request\"},\n \t}\n \n \tif r.Roles.SettingsAllowed() {\n-\t\ttabs = append(tabs, []string{\"settings\", \"/settings\"})\n+\t\ttabs = append(tabs, []string{\"settings\", \"/settings\", \"cog\"})\n \t}\n \n \treturn tabs\ndiff --git a/appview/pages/templates/layouts/repobase.html b/appview/pages/templates/layouts/repobase.html\nindex edcecff367582bb08a06084aaaba4cb9fb6cef49..e13120f4de79096780dd21aee018c5d3657d2086 100644\n--- a/appview/pages/templates/layouts/repobase.html\n+++ b/appview/pages/templates/layouts/repobase.html\n@@ -32,6 +32,7 @@                 {{ $tabmeta := .RepoInfo.TabMetadata }}\n                 {{ range $item := $tabs }}\n                     {{ $key := index $item 0 }}\n                     {{ $value := index $item 1 }}\n+                    {{ $icon := index $item 2 }}\n                     {{ $meta := index $tabmeta $key }}\n                     <a\n                         href=\"/{{ $.RepoInfo.FullName }}{{ $value }}\"\n@@ -47,10 +48,13 @@                                 group-hover:bg-gray-200 dark:group-hover:bg-gray-700\n                              {{ end }}\n                              \"\n                         >\n-                            {{ $key }}\n-                            {{ if not (isNil $meta) }}\n-                            <span class=\"bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm\">{{  $meta }}</span>\n-                            {{ end }}\n+                            <span class=\"flex items-center justify-center\">\n+                                {{ i $icon \"w-4 h-4 mr-2\" }}\n+                                {{ $key }}\n+                                {{ if not (isNil $meta) }}\n+                                <span class=\"bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm ml-1\">{{  $meta }}</span>\n+                                {{ end }}\n+                            </span>\n                         </div>\n                     </a>\n                 {{ end }}\n",
    "title": "appview: pages: add some kino icons to the repo tabs",
    "pullId": 31,
    "source": {
      "branch": "repotab-icons"
    },
    "targetRepo": "at://did:plc:wshs7t2adsemcrrd4snkeqli/sh.tangled.repo/3liuighjy2h22",
    "targetBranch": "master"
  }
}