publiclab / plots2

a collaborative knowledge-exchange platform in Rails; we welcome first-time contributors! :balloon:
https://publiclab.org
GNU General Public License v3.0
957 stars 1.83k forks source link

HTML Code indentation #11017

Closed shefali12-ab closed 2 years ago

shefali12-ab commented 2 years ago

💡Format this Issue Into a First Timers Issue

This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting✍️, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled🏷. Or, if this is not your first time, try to solve it yourself🧑‍💻!


Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

If you have contributed before, consider leaving this one for someone new and looking through our general help wanted issues. Thanks!

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

See this page for some help in taking your first steps!

Below is a "diff" showing in red (and a -) which lines to remove, and in green (and a +) which lines to add: At https://github.com/publiclab/plots2/blob/main/static/index.html tags within tags are looking messy, they can be wriiten in a good way.


-   <div class="info">
-           <p>Balloon and kite mapping are a way to collect aerial images affordably, using a digital camera lofted to 1000ft on a -      tethered balloon or kite.</p>
-           <p><ul>
-               <li><a href="">Intro to Balloon Mapping</a></li>
-               <li><a href="">Illustrated PDF guide</a></li>
-               <li><a href=""><b>Buy a kit</b></a></li>
-           </ul></p>
-       </div>
-       <div class="items">
-           <div>
-               <a href=""><img src="images/item1.jpg" /></a>
-               <h3><a href="">Infrared camera rig</a></h3>
-               <p><i>35 mins ago by <a href="">Chris Fastie</a></i></p>
-               <p><a href="">0 comments &raquo;</a></p>
-           </div>
-           <div>
-               <a href=""><img src="images/item2.jpg" /></a>
-               <h3><a href="">LEAFFEST 2012</a></h3>
-               <p><i>35 mins ago by <a href="">Chris Fastie</a></i></p>
-               <p><a href="">8 comments &raquo;</a></p>
-           </div>
-           <div>
-               <a href=""><img src="images/item1.jpg" /></a>
-               <h3><a href="">Infrared camera rig</a></h3>
-               <p><i>35 mins ago by <a href="">Chris Fastie</a></i></p>
-               <p><a href="">0 comments &raquo;</a></p>
-           </div>
-           <div>
-               <a href=""><img src="images/item2.jpg" /></a>
-               <h3><a href="">LEAFFEST 2012</a></h3>
-               <p><i>35 mins ago by <a href="">Chris Fastie</a></i></p>
-               <p><a href="">4 comments &raquo;</a></p>
-           </div>
-           <br style="clear:both;" />
-       </div>

-   </div>

+<div class="info">
+  <p>
+   Balloon and kite mapping are a way to collect aerial images affordably, using a digital camera lofted to 1000ft on a tethered 
+    balloon or kite.
+  </p>
+   <p>
+    <ul>
+   <li><a href="">Intro to Balloon Mapping</a></li>
+   <li><a href="">Illustrated PDF guide</a></li>
+   <li><a href=""><b>Buy a kit</b></a></li>
+   </ul>
+    </p>
+       </div>
+       <div class="items">
+           <div>
+               <a href=""><img src="images/item1.jpg" /></a>
+               <h3><a href="">Infrared camera rig</a></h3>
+               <p>
+                            <i>35 mins ago by <a href="">Chris Fastie</a></i>
+                               </p>
+               <p><a href="">0 comments &raquo;</a></p>
+           </div>
+           <div>
+               <a href=""><img src="images/item2.jpg" /></a>
+               <h3><a href="">LEAFFEST 2012</a></h3>
+               <p>
+                               <i>35 mins ago by <a href="">Chris Fastie</a></i>
+                              </p>
+               <p><a href="">8 comments &raquo;</a></p>
+           </div>
+           <div>
+               <a href=""><img src="images/item1.jpg" /></a>
+               <h3><a href="">Infrared camera rig</a></h3>
+               <p>
+                               <i>35 mins ago by <a href="">Chris Fastie</a></i>
+                              </p>
+               <p>
+                              <a href="">0 comments &raquo;</a>
+                              </p>
+           </div>
+           <div>
+               <a href=""><img src="images/item2.jpg" /></a>
+               <h3><a href="">LEAFFEST 2012</a></h3>
+               <p>
+                             <i>35 mins ago by <a href="">Chris Fastie</a></i>
+                              </p>
+               <p>
+                            <a href="">4 comments &raquo;</a>
+                               </p>
+           </div>
+           <br style="clear:both;" />
+       </div>
+
    </div>

$DIFF
  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

Please keep us updated

💬⏰ - We encourage contributors to be respectful to the community and provide an update within a week of claiming a first-timers-only issue. We're happy to keep it assigned to you as long as you need if you update us with a request for more time or help, but if we don't see any activity a week after you claim it we may reassign it to give someone else a chance. Thank you in advance!

If this happens to you, don't sweat it! Grab another open issue.

Is someone else already working on this?

🔗- We encourage contributors to link to the original issue in their pull request so all users can easily see if someone's already started on it.

👥- If someone seems stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!

🤔❓ Questions?

Leave a comment below, and reach out in our chatroom!

shefali12-ab commented 2 years ago

Hii @TildaDares check this issue, I think this can be a FTO. Thank you.

TildaDares commented 2 years ago

Hi @shefali12-ab, thanks for working on this. Indenting HTML is a lot of work and not something a first-timer can handle. Also, a lot of the html in this project is unindented so instead of trying to indent everything, we’re focusing on making sure contributors indent new code that they add. Thanks!!

shefali12-ab commented 2 years ago

sure @TildaDares I will close this issue.