1- From dc145e6f21466387dde81ce41664c4100ee271bb  Mon Sep 17 00:00:00 2001
1+ From d424d073fb21437c7ab2b47716e52ccca1af1ef4  Mon Sep 17 00:00:00 2001
22From: Brecht Van Lommel <
[email protected] >
33Date: Fri, 10 May 2024 14:00:36 +0200
4- Subject: [PATCH 06/18 ] BLENDER: Projects: button to show/hide issue details
4+ Subject: [PATCH 06/17 ] BLENDER: Projects: button to show/hide issue details
55 and closed issue
66
77Both are off by default. This is implemented fully on the frontend, so
88all issues and their details are still always loaded.
99--- 
1010 templates/projects/view.tmpl      | 43 ++++++++++++++++++++++++++++++-
1111 templates/repo/issue/card.tmpl    | 25 ++++++++++--------
12-  web_src/css/features/projects.css |  2 +- 
12+  web_src/css/features/projects.css |  8 ++++++ 
1313 web_src/css/repo/issue-card.css   |  2 ++
14-  4 files changed, 59  insertions(+), 13  deletions(-)
14+  4 files changed, 66  insertions(+), 12  deletions(-)
1515
1616diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl 
17- index 217ffe6355..9640deee94  100644
17+ index 7e89db0005..413f306585  100644
1818--- a/templates/projects/view.tmpl 
1919+++ b/templates/projects/view.tmpl 
20- @@ -19 ,6 +19 ,16 @@ 
21-  						"TextNegativeOne " (ctx.Locale.Tr "repo.issues.filter_assginee_no_assignee ")
22-  					 }}
23-  				 </div>
20+ @@ -17 ,6 +17 ,16 @@ 
21+  				"TextFilterMatchAny " (ctx.Locale.Tr "repo.issues.filter_assignee_any_assignee ")
22+  			}}
23+  		</div>
2424+ 			<div class="ui compact mini menu" style="margin-left: auto; margin-right: 1em;">
2525+ 				<button class="item btn" onclick="clickDetailsView()">
2626+ 					<span class="issue-card-details">Show Details</span>
@@ -33,8 +33,8 @@ index 217ffe6355..9640deee94 100644
3333+ 			</div>
3434 		{{if $canWriteProject}}
3535 			<div class="ui compact mini menu">
36-  				<a class="item" href="{{.Link}}/edit?redirect=project ">
37- @@ -168 ,7 +178 ,7 @@ 
36+  				<a class="item screen-full ">
37+ @@ -112 ,7 +122 ,7 @@ 
3838 				<div class="divider"{{if .Color}} style="color: {{ContrastColor .Color}} !important"{{end}}></div>
3939 				<div class="ui cards" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}">
4040 					{{range (index $.IssuesMap .ID)}}
@@ -43,7 +43,7 @@ index 217ffe6355..9640deee94 100644
4343 							{{template "repo/issue/card" (dict "Issue" . "Page" $)}}
4444 						</div>
4545 					{{end}}
46- @@ -178 ,6 +188 ,37 @@ 
46+ @@ -122 ,6 +132 ,37 @@ 
4747 	</div>
4848 </div>
4949
@@ -78,11 +78,11 @@ index 217ffe6355..9640deee94 100644
7878+ 	}
7979+ </script>
8080+ 
81-  {{if .CanWriteProjects }}
82-  	 <div class="ui g- modal-confirm delete  modal">
83-  		 <div class="header">
81+  {{if $canWriteProject }}
82+  <div class="ui small  modal" id="project-column- modal-edit ">
83+  	<div class="header">edit</div >
8484diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl 
85- index 2e19e86d7a..e27cf1cbb7  100644
85+ index 41fe6cea8f..99d77f4adf  100644
8686--- a/templates/repo/issue/card.tmpl 
8787+++ b/templates/repo/issue/card.tmpl 
8888@@ -10,6 +10,14 @@ 
@@ -124,7 +124,7 @@ index 2e19e86d7a..e27cf1cbb7 100644
124124 		{{range index $.Page.LinkedPRs .ID}}
125125- 		<div class="meta tw-my-1">
126126+ 		<div class="meta tw-my-1 issue-card-details tw-hidden">
127-  			<a href="{{$.Issue .Repo.Link}}/pulls/{{.Index}}">
127+  			<a href="{{.Repo.Link}}/pulls/{{.Index}}">
128128 				<span class="tw-m-0 text {{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge" 16 "tw-mr-1 tw-align-middle"}}</span>
129129 				<span class="tw-align-middle">{{.Title}} <span class="text light grey">#{{.Index}}</span></span>
130130@@ -54,25 +62,20 @@ 
@@ -157,18 +157,24 @@ index 2e19e86d7a..e27cf1cbb7 100644
157157 	{{end}}
158158 {{end}}
159159diff --git a/web_src/css/features/projects.css b/web_src/css/features/projects.css 
160- index ef3b036217..ca5057118f  100644
160+ index 1d09e9c7ea..b6bd1d250d  100644
161161--- a/web_src/css/features/projects.css 
162162+++ b/web_src/css/features/projects.css 
163- @@ -16,7 +16,7 @@ 
164-    padding: 0.5rem !important;
165-    width: 320px;
166-    height: initial;
167- -   min-height: max(calc(100vh - 400px), 300px);
163+ @@ -19,6 +19,14 @@ 
164+  }
165+  
166+  .project-column {
167+ +   background-color: var(--color-project-column-bg) !important;
168+ +   border: 1px solid var(--color-secondary) !important;
169+ +   border-radius: var(--border-radius);
170+ +   margin: 0 0.5rem !important;
171+ +   padding: 0.5rem !important;
172+ +   width: 320px;
173+ +   height: initial;
168174+   min-height: max(calc(100vh - 225px), 300px);
169175   flex: 0 0 auto;
170-    overflow: visible;
171176   display: flex;
177+    flex-direction: column;
172178diff --git a/web_src/css/repo/issue-card.css b/web_src/css/repo/issue-card.css 
173179index fb832bd05a..4fb9b42f46 100644
174180--- a/web_src/css/repo/issue-card.css 
0 commit comments