|
257 | 257 | > |
258 | 258 | <.icon name="tabler-user-dollar" class="h-6 w-6 shrink-0" /> |
259 | 259 | </.button> |
260 | | - <.drawer |
261 | | - show={@main_contract_form_open?} |
262 | | - direction="right" |
263 | | - on_cancel="close_main_contract_form" |
264 | | - > |
265 | | - <.drawer_header> |
266 | | - <.drawer_title>Create new contract</.drawer_title> |
267 | | - <.drawer_description> |
268 | | - <div>Engage a developer for ongoing work</div> |
269 | | - <div class="mt-2 flex items-center gap-1"> |
270 | | - <.icon name="tabler-bulb" class="h-5 w-5 shrink-0" /> |
271 | | - <span> |
272 | | - Weekly contributions, PR review, internship, contract-to-hire |
273 | | - </span> |
274 | | - </div> |
275 | | - </.drawer_description> |
276 | | - </.drawer_header> |
277 | | - <.drawer_content> |
278 | | - <AlgoraWeb.Forms.ContractForm.contract_form form={main_contract_form} /> |
279 | | - </.drawer_content> |
280 | | - </.drawer> |
281 | 260 | </div> |
282 | 261 | <% end %> |
283 | 262 | <%= if main_bounty_form = Map.get(assigns, :main_bounty_form) do %> |
|
292 | 271 | class="h-[0.8rem] w-[0.8rem] shrink-0 absolute bottom-[0.2rem] right-[0.2rem]" |
293 | 272 | /> |
294 | 273 | </.button> |
295 | | - <.drawer |
296 | | - show={@main_bounty_form_open?} |
297 | | - direction="right" |
298 | | - on_cancel="close_main_bounty_form" |
299 | | - > |
300 | | - <.drawer_header> |
301 | | - <.drawer_title>Create new bounty</.drawer_title> |
302 | | - <.drawer_description> |
303 | | - <div>Create and fund a bounty for an issue</div> |
304 | | - <div class="mt-2 flex items-center gap-1"> |
305 | | - <.icon name="tabler-bulb" class="h-5 w-5 shrink-0" /> |
306 | | - <span> |
307 | | - New feature, integration, bug fix, CLI, mobile app, MCP, video |
308 | | - </span> |
309 | | - </div> |
310 | | - </.drawer_description> |
311 | | - </.drawer_header> |
312 | | - <.drawer_content> |
313 | | - <AlgoraWeb.Forms.BountyForm.bounty_form form={main_bounty_form} /> |
314 | | - </.drawer_content> |
315 | | - </.drawer> |
316 | 274 | </div> |
317 | 275 | <% end %> |
318 | 276 | <%!-- {live_render(@socket, AlgoraWeb.Activity.UserNavTimelineLive, |
|
345 | 303 | </div> |
346 | 304 | </div> |
347 | 305 |
|
| 306 | +<%= if @current_user do %> |
| 307 | + <%= if main_contract_form = Map.get(assigns, :main_contract_form) do %> |
| 308 | + <.drawer |
| 309 | + show={@main_contract_form_open?} |
| 310 | + direction="right" |
| 311 | + on_cancel="close_main_contract_form" |
| 312 | + > |
| 313 | + <.drawer_header> |
| 314 | + <.drawer_title>Create new contract</.drawer_title> |
| 315 | + <.drawer_description> |
| 316 | + <div>Engage a developer for ongoing work</div> |
| 317 | + <div class="mt-2 flex items-center gap-1"> |
| 318 | + <.icon name="tabler-bulb" class="h-5 w-5 shrink-0" /> |
| 319 | + <span> |
| 320 | + Weekly contributions, PR review, internship, contract-to-hire |
| 321 | + </span> |
| 322 | + </div> |
| 323 | + </.drawer_description> |
| 324 | + </.drawer_header> |
| 325 | + <.drawer_content> |
| 326 | + <AlgoraWeb.Forms.ContractForm.contract_form form={main_contract_form} /> |
| 327 | + </.drawer_content> |
| 328 | + </.drawer> |
| 329 | + <% end %> |
| 330 | + <%= if main_bounty_form = Map.get(assigns, :main_bounty_form) do %> |
| 331 | + <.drawer show={@main_bounty_form_open?} direction="right" on_cancel="close_main_bounty_form"> |
| 332 | + <.drawer_header> |
| 333 | + <.drawer_title>Create new bounty</.drawer_title> |
| 334 | + <.drawer_description> |
| 335 | + <div>Create and fund a bounty for an issue</div> |
| 336 | + <div class="mt-2 flex items-center gap-1"> |
| 337 | + <.icon name="tabler-bulb" class="h-5 w-5 shrink-0" /> |
| 338 | + <span> |
| 339 | + New feature, integration, bug fix, CLI, mobile app, MCP, video |
| 340 | + </span> |
| 341 | + </div> |
| 342 | + </.drawer_description> |
| 343 | + </.drawer_header> |
| 344 | + <.drawer_content> |
| 345 | + <AlgoraWeb.Forms.BountyForm.bounty_form form={main_bounty_form} /> |
| 346 | + </.drawer_content> |
| 347 | + </.drawer> |
| 348 | + <% end %> |
| 349 | +<% end %> |
| 350 | + |
348 | 351 | <div :if={!@current_user && !assigns[:screenshot?]} class="relative pt-16"> |
349 | 352 | <.flash_group flash={@flash} /> |
350 | 353 | <AlgoraWeb.Components.Header.header /> |
|
0 commit comments