-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from banta/main
#48 Flag features that will probably not make it to version1
- Loading branch information
Showing
8 changed files
with
121 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ | |
<%= image_tag image_path 'country_kenya.png' %> | ||
<div> | ||
<p class="text-2xl text-red-600">Kenya</p> | ||
<p>Join community</p> | ||
<%= link_to new_user_registration_path do %> | ||
<p>Join community</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -22,7 +24,9 @@ | |
<%= image_tag image_path 'country_rwanda.png' %> | ||
<div> | ||
<p class="text-2xl text-red-600">Rwanda</p> | ||
<p>Join community</p> | ||
<%= link_to new_user_registration_path do %> | ||
<p>Join community</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -33,7 +37,10 @@ | |
<%= image_tag image_path 'country_tanzania.png' %> | ||
<div> | ||
<p class="text-2xl text-red-600">Tanzania</p> | ||
<p>Join community</p> | ||
|
||
<%= link_to new_user_registration_path do %> | ||
<p>Join community</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -44,19 +51,24 @@ | |
<%= image_tag image_path 'country_uganda.png' %> | ||
<div> | ||
<p class="text-2xl text-red-600">Uganda</p> | ||
<p>Join community</p> | ||
|
||
<%= link_to new_user_registration_path do %> | ||
<p>Join community</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="carousel-item"> | ||
<div class="grid flex-grow w-44 h-40 card place-items-center border border-slate-900 | ||
<a href="mailto:[email protected]"> | ||
<div class="grid flex-grow w-44 h-40 card place-items-center border border-slate-900 | ||
border-dashed rounded-b-md rounded-tr-md"> | ||
<%= image_tag image_path 'add.png' %> | ||
<div class="px-5"> | ||
<p class="text-2xl">Request new chapter</p> | ||
<%= image_tag image_path 'add.png' %> | ||
<div class="px-5"> | ||
<p class="text-2xl">Request new chapter</p> | ||
</div> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ | |
</div> | ||
|
||
<div class="flex container justify-center pt-12 pb-12"> | ||
<a href="#"> | ||
<a href="mailto:[email protected]"> | ||
<div class="inline-flex text-sm"> | ||
<p class="text-xl"> | ||
Become a sponsor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,25 +9,47 @@ | |
<div class="basis-1/6"> | ||
<ul> | ||
<li><%= link_to 'Home', root_path %></li> | ||
<li><%= link_to 'Events', '#' %></li> | ||
<li><%= link_to 'Conferences', '#' %></li> | ||
|
||
<% if FeatureFlag.find_by(name: 'events').try(:enabled) %> | ||
<li><%= link_to 'Events', '#' %></li> | ||
<% end %> | ||
|
||
<% if FeatureFlag.find_by(name: 'conferences').try(:enabled) %> | ||
<li><%= link_to 'Conferences', '#' %></li> | ||
<% end %> | ||
|
||
<li><%= link_to 'Chapters', '#' %></li> | ||
<li><%= link_to 'Projects', '#' %></li> | ||
|
||
<% if FeatureFlag.find_by(name: 'projects').try(:enabled) %> | ||
<li><%= link_to 'Projects', '#' %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<div class="basis-1/6"> | ||
<ul> | ||
<li> | ||
<%= link_to 'Learning materials', '#' %></li> | ||
<li><%= link_to 'Members', '#' %></li> | ||
|
||
<% if FeatureFlag.find_by(name: 'learning_materials').try(:enabled) %> | ||
<li><%= link_to 'Learning materials', '#' %></li> | ||
<% end %> | ||
|
||
<% if FeatureFlag.find_by(name: 'members').try(:enabled) %> | ||
<li><%= link_to 'Members', '#' %></li> | ||
<% end %> | ||
|
||
<li><%= link_to 'About', landing_about_path %></li> | ||
<li><%= link_to 'Contact Us', '#' %></li> | ||
<li><%= link_to 'Code of conduct', '#' %></li> | ||
|
||
<% if FeatureFlag.find_by(name: 'contact_us').try(:enabled) %> | ||
<li><%= link_to 'Contact Us', '#' %></li> | ||
<% end %> | ||
|
||
<% if FeatureFlag.find_by(name: 'contact_us').try(:enabled) %> | ||
<li><%= link_to 'Code of conduct', '#' %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<div class="basis-1/6"> | ||
<ul> | ||
<li><%= link_to 'Sponsor', '#' %></li> | ||
<li><%= link_to 'Sponsor', 'mailto:[email protected]' %></li> | ||
</ul> | ||
</div> | ||
<div class="basis-1/6"> | ||
|
@@ -42,16 +64,20 @@ | |
</div> | ||
<% end %> | ||
</li> | ||
<li> | ||
<%= link_to '#' do %> | ||
<div class="inline-flex text-sm"> | ||
<div class="pr-4 self-center"> | ||
<%= image_tag image_path('brands_telegram.png'), class: "w-5" %> | ||
|
||
<% if FeatureFlag.find_by(name: 'telegram').try(:enabled) %> | ||
<li> | ||
<%= link_to '#' do %> | ||
<div class="inline-flex text-sm"> | ||
<div class="pr-4 self-center"> | ||
<%= image_tag image_path('brands_telegram.png'), class: "w-5" %> | ||
</div> | ||
Telegram | ||
</div> | ||
Telegram | ||
</div> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
|
||
<li> | ||
<li> | ||
<%= link_to '#' do %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
db/migrate/20230313002939_rename_feature_to_name_for_feature_flags.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class RenameFeatureToNameForFeatureFlags < ActiveRecord::Migration[7.0] | ||
def change | ||
rename_column :feature_flags, :feature, :name | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
|
||
one: | ||
feature: MyString | ||
name: MyString | ||
description: MyText | ||
enabled: false | ||
|
||
two: | ||
feature: MyString | ||
name: MyString | ||
description: MyText | ||
enabled: false |