|
1 | | -<div class="container mx-auto px-4 py-8"> |
2 | | - <%= button_to 'Home', root_path, method: :get, class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" %> |
3 | | - <div class="text-lg font-semibold mb-4"> |
4 | | - <%= @repository.user.nickname %> / <%= @repository.full_name %> |
5 | | - </div> |
6 | | - <div class="flex flex-wrap -mx-2"> |
7 | | - <div class="w-full md:w-1/2 px-2"> |
8 | | - <div class="mb-4"> |
9 | | - <strong>Title:</strong> |
10 | | - <p><%= @campaign.title %></p> |
11 | | - </div> |
12 | | - <div class="mb-4"> |
13 | | - <strong>Description:</strong> |
14 | | - <p><%= @campaign.description %></p> |
15 | | - </div> |
16 | | - <div class="mb-4"> |
17 | | - <strong>Project Owner:</strong> |
18 | | - <p><%= @repository.user.nickname %> project owner verified |
19 | | - <%= image_tag("verified-icon.svg", alt: "Verified", class: "inline-block ml-1", width: "20", height: "20") %> |
20 | | - </p> |
21 | | - </div> |
22 | | - <div class="mb-4"> |
23 | | - <strong>Repository URL:</strong> |
24 | | - <p> |
25 | | - <%= link_to "https://github.com/#{@repository.full_name}", target: "_blank", rel: "noopener noreferrer" do %> |
26 | | - https://github.com/<%= @repository.full_name %> |
27 | | - <% end %> |
28 | | - </p> |
29 | | - </div> |
30 | | - <div> |
31 | | - <% if @repository.user == current_user %> |
32 | | - <%= link_to 'Edit Campaign', edit_user_repository_campaign_path(@repository.user, @repository, @campaign), class: "bg-blue-500 text-white px-4 py-2 rounded inline-block" %> |
33 | | - <% end %> |
34 | | - </div> |
| 1 | +<div class="flex justify-center items-center min-h-screen"> |
| 2 | + <div class="w-full max-w-4xl px-4 py-8 bg-white"> |
| 3 | + <%= button_to 'Home', root_path, method: :get, class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" %> |
| 4 | + <div class="text-lg font-semibold mb-4"> |
| 5 | + Campaign for <%= @repository.user.nickname %> / <%= @repository.name %> |
35 | 6 | </div> |
36 | 7 | <div class="flex flex-wrap -mx-2"> |
37 | 8 | <div class="flex flex-col md:flex-row md:space-x-36"> |
|
58 | 29 | <% end %> |
59 | 30 | </p> |
60 | 31 | </div> |
| 32 | + <div> |
| 33 | + <% if @repository.user == current_user %> |
| 34 | + <%= link_to 'Edit Campaign', edit_user_repository_campaign_path(@repository.user, @repository, @campaign), class: "bg-blue-500 text-white px-4 py-2 rounded inline-block" %> |
| 35 | + <% end %> |
| 36 | + </div> |
61 | 37 | </div> |
62 | 38 | <div class="w-full md:w-1/2 px-2 ml-4"> |
63 | 39 | <%= render 'contributions/new', campaign: @campaign, contribution: Contribution.new, accepted_currencies: @campaign.accepted_currencies %> |
|
0 commit comments