Changeset 714


Ignore:
Timestamp:
Nov 29, 2008, 12:07:23 AM (15 years ago)
Author:
Peter Johansson
Message:

refs #304 - adding title in trac_revision, feature is not used and default behaviour is not modified so nothing is really changed

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r693 r714  
    180180
    181181
    182   std::string trac_revision(svn_revnum_t r, std::string color)
     182  std::string trac_revision(svn_revnum_t r, std::string color, std::string title)
    183183  {
    184184    const Configuration& conf = Configuration::instance();
     
    189189      std::stringstream rev;
    190190      rev << r;
     191      if (title.empty()) // default behaviour
     192        title = "View ChangeSet " + ss.str();
    191193      ss << anchor(conf.trac_root()+"changeset/"+rev.str(), rev.str(),
    192                    0, "View ChangeSet "+rev.str(), color);
     194                   0, title, color);
    193195    }
    194196    return ss.str();
  • trunk/lib/html_utility.h

    r693 r714  
    7272  /// given otherwise just a string corresponding to passed parameter.
    7373  ///
    74   std::string trac_revision(svn_revnum_t, std::string color="");
     74  std::string trac_revision(svn_revnum_t, std::string color="",
     75                            std::string title="");
    7576
    7677}} // end of namespace svndigest end of namespace theplu
Note: See TracChangeset for help on using the changeset viewer.