Skip to content

Commit

Permalink
Modernize code and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Mar 5, 2024
1 parent ddc521b commit 1b4aa66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions editor/styles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ std::string Editor_Styles::getRecentlyUsed (Webserver_Request& webserver_request
const std::string s_styles = webserver_request.database_config_user()->getRecentlyAppliedStyles ();
const std::vector <std::string> styles = filter::strings::explode (s_styles, ' ');
std::string fragment = translate("Select style") + ": ";
for (unsigned int i = 0; i < styles.size(); i++) {
if (i) fragment.append (" | ");
const std::string& marker = styles.at(i);
for (const auto& marker : styles) {
if (!fragment.empty()) fragment.append (" | ");
Database_Styles_Item data = webserver_request.database_styles()->getMarkerData (stylesheet, marker);
if (data.marker.empty ()) continue;
const std::string name = translate(data.name) + " (" + marker + ")";
Expand Down Expand Up @@ -99,7 +98,6 @@ std::string Editor_Styles::getAll (Webserver_Request& webserver_request)
std::string category = marker_data.category;
category = styles_logic_category_text (category);
const std::string line2 = marker + " " + name + " (" + category + ")";
std::cout << line2 << std::endl; // Todo
lines.push_back ("<option>" + line2 + "</option>");
}

Expand Down
2 changes: 1 addition & 1 deletion session/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 id="software-name">translate ("Bibledit")</h3>
<!-- #BEGINZONE local -->
<p><a href="password">translate ("Forgot password?")</a></p>
<!-- #BEGINZONE create_accounts -->
<p>translate ("Not registered?") <a href="signup">translate ("Sign up!")</a></p> Todo
<p>translate ("Not registered?") <a href="signup">translate ("Sign up!")</a></p>
<!-- #ENDZONE create_accounts -->
<!-- #ENDZONE local -->
</form>
Expand Down

0 comments on commit 1b4aa66

Please sign in to comment.