def bundle_summary_section(): global ghiblog global cur_time global user total_label_count = ghiblog.get_labels().totalCount total_issue_count = ghiblog.get_issues().totalCount user_login = os.environ.get('GITHUB_LOGIN') pic_of_the_day = NasaClient().get_picture_of_the_day() summary_section = ''' <p align='center'> <img src="https://badgen.net/badge/labels/{1}"/> <img src="https://badgen.net/github/issues/{0}/ghiblog"/> <img src="https://badgen.net/badge/last-commit/{2}"/> <img src="https://badgen.net/github/forks/{0}/ghiblog"/> <img src="https://badgen.net/github/stars/{0}/ghiblog"/> <img src="https://badgen.net/github/watchers/{0}/ghiblog"/> <img src="https://badgen.net/github/release/{0}/ghiblog"/> </p> <p align='center'> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/total.svg?repo_id={0}.ghiblog"/> </a> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/today.svg?repo_id={0}.ghiblog"/> </a> </p> '''.format(user_login, total_label_count, cur_time) return summary_section
def bundle_summary_section(): global ghiblog global cur_time global user global username total_label_count = ghiblog.get_labels().totalCount total_issue_count = ghiblog.get_issues().totalCount pic_of_the_day = NasaClient().get_picture_of_the_day() summary_section = ''' <p align='center'> <img src="https://badgen.net/badge/labels/{1}"/> <img src="https://badgen.net/github/issues/{0}/ghiblog"/> <img src="https://badgen.net/badge/last-commit/{2}"/> <img src="https://badgen.net/github/forks/{0}/ghiblog"/> <img src="https://badgen.net/github/stars/{0}/ghiblog"/> <img src="https://badgen.net/github/watchers/{0}/ghiblog"/> <img src="https://badgen.net/github/release/{0}/ghiblog"/> </p> <p align='center'> <!-- DO NOT REMOVE! --> <a href="https://github.com/rdp-studio/ghiblog/issues/1"><img src="https://badgen.net/badge/Powerd%20By/ghiblog"/></a> <!-- DO NOT REMOVE! --> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-badge.glitch.me/badge?page_id=rdp-studio.ghiblog"/> </a> </p> '''.format(username, total_label_count, cur_time) return summary_section
def bundle_summary_section(): global elaw global cur_time global user global username total_label_count = elaw.get_labels().totalCount total_issue_count = elaw.get_issues().totalCount pic_of_the_day = NasaClient().get_picture_of_the_day() summary_section = ''' <p align='center'> <b>记录平时看到的,听到的一些有用的事情,目前在互联游戏公司负责投融资及法律事宜方面的工作,关注知识产权、公司等民商事领域。</b> </p> <p align='center'> <a href="mailto:[email protected]">点击这里可以给我的工作邮箱发邮件留言</a> </p> <p align='center'> <b>扫描下方微信二维码,联系我!</b> </p> <p align='center'> <img src="https://user-images.githubusercontent.com/39726855/69690735-b35ed000-1107-11ea-8398-58b67df491c4.jpg" alt="微信交流" /> </p> <p align='center'> <img src="https://badgen.net/badge/labels/{1}"/> <img src="https://badgen.net/github/issues/{0}/elaw"/> <img src="https://badgen.net/badge/last-commit/{2}"/> <img src="https://badgen.net/github/forks/{0}/elaw"/> <img src="https://badgen.net/github/stars/{0}/elaw"/> <img src="https://badgen.net/github/watchers/{0}/elaw"/> <img src="https://badgen.net/github/release/{0}/elaw"/> </p> <p align='center'> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/total.svg?repo_id={0}.elaw"/> </a> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/today.svg?repo_id={0}.elaw"/> </a> </p> is '''.format(username, total_label_count, cur_time) return summary_section
def bundle_summary_section(): global ghiblog global cur_time global user total_label_count = ghiblog.get_labels().totalCount total_issue_count = ghiblog.get_issues().totalCount user_login = user.get_user().login pic_of_the_day = NasaClient().get_picture_of_the_day() summary_section = ''' <p align='center'> <a href="#"><img src="assets/ghiblog.png" width="50%"/></a> </p> <p align='center'> <img src="https://badgen.net/circleci/github/{0}/ghiblog"/> <img src="https://badgen.net/badge/labels/{1}"/> <img src="https://badgen.net/github/issues/{0}/ghiblog"/> <img src="https://badgen.net/badge/last-commit/{2}"/> <img src="https://badgen.net/github/forks/{0}/ghiblog"/> <img src="https://badgen.net/github/stars/{0}/ghiblog"/> <img src="https://badgen.net/github/watchers/{0}/ghiblog"/> <img src="https://badgen.net/github/release/{0}/ghiblog"/> </p> <p align='center'> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/total.svg?repo_id={0}.ghiblog"/> </a> <a href="https://github.com/jwenjian/visitor-count-badge"> <img src="https://visitor-count-badge.herokuapp.com/today.svg?repo_id={0}.ghiblog"/> </a> </p> ## :artificial_satellite:今日图片 <p align="center"><b>{3}</b></p> <p align="center"> <img src="{4}" alt="{3}" title="{5}" width="50%"/> </p> '''.format(user_login, total_label_count, cur_time, pic_of_the_day.title, pic_of_the_day.url, pic_of_the_day.explanation) return summary_section